Skip to content

Commit 60bf28f

Browse files
committed
Auto merge of #11981 - Systemcluster:rustflags-comparable, r=epage
Recompile on profile rustflags changes Adding `rustflags` to the comparable profile properties. Follow-up to #11121 without the additional changes. Closes #11120
2 parents 5861176 + e080273 commit 60bf28f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/cargo/core/profiles.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ impl Profile {
704704
/// Compares all fields except `name`, which doesn't affect compilation.
705705
/// This is necessary for `Unit` deduplication for things like "test" and
706706
/// "dev" which are essentially the same.
707-
fn comparable(&self) -> impl Hash + Eq {
707+
fn comparable(&self) -> impl Hash + Eq + '_ {
708708
(
709709
self.opt_level,
710710
self.lto,
@@ -715,9 +715,8 @@ impl Profile {
715715
self.debug_assertions,
716716
self.overflow_checks,
717717
self.rpath,
718-
self.incremental,
719-
self.panic,
720-
self.strip,
718+
(self.incremental, self.panic, self.strip),
719+
&self.rustflags,
721720
)
722721
}
723722
}

0 commit comments

Comments
 (0)