Remove attr_id from stable lint ids.

This commit is contained in:
Camille GILLOT
2024-07-04 10:12:39 +00:00
parent 111b0a97b4
commit 5f1f45b095
5 changed files with 14 additions and 42 deletions

View File

@@ -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;
}