Skip to content

Commit 681775b

Browse files
authored
re-add comment
1 parent 5b83a35 commit 681775b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cargo/core/profiles.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,9 @@ pub enum ProfileRoot {
540540
/// Profile settings used to determine which compiler flags to use for a
541541
/// target.
542542
#[derive(Clone, Eq, PartialOrd, Ord, serde::Serialize, derivative::Derivative)]
543+
/// Don't compare/hash fields which wont affect compilation.
544+
/// This is necessary for `Unit` deduplication for things like "test" and
545+
/// "dev" which are essentially the same.
543546
#[derivative(Hash, PartialEq)]
544547
pub struct Profile {
545548
#[derivative(Hash = "ignore", PartialEq = "ignore")]

0 commit comments

Comments
 (0)