We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0a4cbc commit e080273Copy full SHA for e080273
src/cargo/core/profiles.rs
@@ -704,7 +704,7 @@ impl Profile {
704
/// Compares all fields except `name`, which doesn't affect compilation.
705
/// This is necessary for `Unit` deduplication for things like "test" and
706
/// "dev" which are essentially the same.
707
- fn comparable(&self) -> impl Hash + Eq {
+ fn comparable(&self) -> impl Hash + Eq + '_ {
708
(
709
self.opt_level,
710
self.lto,
@@ -715,9 +715,8 @@ impl Profile {
715
self.debug_assertions,
716
self.overflow_checks,
717
self.rpath,
718
- self.incremental,
719
- self.panic,
720
- self.strip,
+ (self.incremental, self.panic, self.strip),
+ &self.rustflags,
721
)
722
}
723
0 commit comments