Skip to content

Commit d2ca374

Browse files
nipunn1313alexcrichton
authored andcommitted
Cleanup debug statements
1 parent 7336e32 commit d2ca374

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/cargo/ops/cargo_rustc/context.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use super::layout::Layout;
2525
use super::links::Links;
2626
use super::{Kind, Compilation, BuildConfig};
2727

28-
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
28+
#[derive(Clone, Copy, Eq, PartialEq, Hash)]
2929
pub struct Unit<'a> {
3030
pub pkg: &'a Package,
3131
pub target: &'a Target,
@@ -485,7 +485,6 @@ impl<'a, 'cfg> Context<'a, 'cfg> {
485485

486486
// Mix in the target-metadata of all the dependencies of this target
487487
if let Ok(deps) = self.used_deps(unit) {
488-
debug!("Mixing in units {:?} to {:?}:{:?}", deps.len(), unit.target.name(), unit.target.kind());
489488
let mut deps_metadata = deps.into_iter().map(|dep_unit| {
490489
self.target_metadata(&dep_unit)
491490
}).collect::<Vec<_>>();
@@ -518,9 +517,7 @@ impl<'a, 'cfg> Context<'a, 'cfg> {
518517
channel.hash(&mut hasher);
519518
}
520519

521-
let x = Metadata(hasher.finish());
522-
debug!("Produced hash {} for {:?}:{:?}", x, unit.target.name(), unit.target.kind());
523-
Some(x)
520+
Some(Metadata(hasher.finish()))
524521
}
525522

526523
/// Returns the file stem for a given target/profile combo (with metadata)

tests/workspaces.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,6 +1530,8 @@ fn dep_used_with_separate_features() {
15301530

15311531
// Build caller1. should build the dep library. Because the features
15321532
// are different than the full workspace, it rebuilds.
1533+
// Ideally once we solve https://github.com/rust-lang/cargo/issues/3620, then
1534+
// a single cargo build at the top level will be enough.
15331535
assert_that(p.cargo("build").cwd(p.root().join("caller1")),
15341536
execs().with_status(0)
15351537
.with_stderr("\

0 commit comments

Comments
 (0)