Remove attr_id from stable lint ids.
This commit is contained in:
@@ -368,7 +368,7 @@ impl DiagInner {
|
||||
panic!("{expectation_id:?} must have a matching stable id")
|
||||
};
|
||||
|
||||
let mut stable_id = stable_id.normalize();
|
||||
let mut stable_id = *stable_id;
|
||||
stable_id.set_lint_index(lint_index);
|
||||
*expectation_id = stable_id;
|
||||
}
|
||||
|
||||
@@ -1567,7 +1567,7 @@ impl DiagCtxtInner {
|
||||
if let LintExpectationId::Unstable { .. } = expect_id {
|
||||
unreachable!(); // this case was handled at the top of this function
|
||||
}
|
||||
self.fulfilled_expectations.insert(expect_id.normalize());
|
||||
self.fulfilled_expectations.insert(expect_id);
|
||||
if let Expect(_) = diagnostic.level {
|
||||
// Nothing emitted here for expected lints.
|
||||
TRACK_DIAGNOSTIC(diagnostic, &mut |_| None);
|
||||
|
||||
Reference in New Issue
Block a user