Skip to content

Commit 06febee

Browse files
committed
Trying to debug hang
1 parent ef89d7e commit 06febee

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

cargo-dylint/tests/integration/library_packages.rs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,12 @@ libraries = [
7979

8080
#[test]
8181
fn library_packages_in_dylint_toml() {
82-
std::process::Command::cargo_bin("cargo-dylint")
83-
.unwrap()
82+
let mut command = std::process::Command::cargo_bin("cargo-dylint").unwrap();
83+
command
8484
.current_dir("../fixtures/library_packages_in_dylint_toml")
85-
.args(["dylint", "--all"])
86-
.assert()
87-
.success()
88-
.stderr(predicate::str::contains(
89-
"\nwarning: `unwrap`s that could be combined\n",
90-
));
85+
.args(["dylint", "--all"]);
86+
let status = command.status().unwrap();
87+
assert!(status.success());
9188
}
9289

9390
#[test]

dylint/src/library_packages/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,8 @@ pub fn build_library(opts: &opts::Dylint, package: &Package) -> Result<PathBuf>
449449
let path = package.path();
450450

451451
if !opts.library_selection().no_build {
452+
dbg!();
453+
452454
// smoelius: Clear `RUSTFLAGS` so that changes to it do not cause workspace metadata entries
453455
// to be rebuilt.
454456
dylint_internal::cargo::build(&format!("workspace metadata entry `{}`", package.id.name()))
@@ -460,6 +462,8 @@ pub fn build_library(opts: &opts::Dylint, package: &Package) -> Result<PathBuf>
460462
.args(["--release", "--target-dir", &target_dir.to_string_lossy()])
461463
.success()?;
462464

465+
dbg!();
466+
463467
let exists = path
464468
.try_exists()
465469
.with_context(|| format!("Could not determine whether `{}` exists", path.display()))?;

0 commit comments

Comments
 (0)