Skip to content

Commit b4ff787

Browse files
committed
the fix
1 parent bee9c89 commit b4ff787

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/cargo/core/profiles.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ impl Profile {
660660
/// Compares all fields except `name`, which doesn't affect compilation.
661661
/// This is necessary for `Unit` deduplication for things like "test" and
662662
/// "dev" which are essentially the same.
663-
fn comparable(&self) -> impl Hash + Eq {
663+
fn comparable(&self) -> impl Hash + Eq + '_ {
664664
(
665665
self.opt_level,
666666
self.lto,
@@ -673,7 +673,8 @@ impl Profile {
673673
self.rpath,
674674
self.incremental,
675675
self.panic,
676-
self.strip,
676+
//"This trait is implemented for tuples up to twelve items long." - https://doc.rust-lang.org/std/cmp/trait.Eq.html#impl-Eq-203
677+
(self.strip, &self.rustflags),
677678
)
678679
}
679680
}

0 commit comments

Comments
 (0)