Revert "Auto merge of #101620 - cjgillot:compute_lint_levels_by_def, r=oli-obk"
This reverts commit2cb9a65684
, reversing changes made to750bd1a7ff
.
This commit is contained in:
parent
381bd2a836
commit
fc43df0333
18 changed files with 497 additions and 679 deletions
|
@ -339,10 +339,9 @@ impl Diagnostic {
|
|||
// The lint index inside the attribute is manually transferred here.
|
||||
let lint_index = expectation_id.get_lint_index();
|
||||
expectation_id.set_lint_index(None);
|
||||
let mut stable_id = unstable_to_stable
|
||||
let mut stable_id = *unstable_to_stable
|
||||
.get(&expectation_id)
|
||||
.expect("each unstable `LintExpectationId` must have a matching stable id")
|
||||
.normalize();
|
||||
.expect("each unstable `LintExpectationId` must have a matching stable id");
|
||||
|
||||
stable_id.set_lint_index(lint_index);
|
||||
*expectation_id = stable_id;
|
||||
|
|
|
@ -1205,7 +1205,7 @@ impl HandlerInner {
|
|||
|
||||
if let Some(expectation_id) = diagnostic.level.get_expectation_id() {
|
||||
self.suppressed_expected_diag = true;
|
||||
self.fulfilled_expectations.insert(expectation_id.normalize());
|
||||
self.fulfilled_expectations.insert(expectation_id);
|
||||
}
|
||||
|
||||
if matches!(diagnostic.level, Warning(_))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue