Remove attr_id from stable lint ids.
This commit is contained in:
parent
111b0a97b4
commit
5f1f45b095
5 changed files with 14 additions and 42 deletions
|
@ -20,8 +20,7 @@ fn lint_expectations(tcx: TyCtxt<'_>, (): ()) -> Vec<(LintExpectationId, LintExp
|
|||
let mut unstable_to_stable_ids = FxIndexMap::default();
|
||||
|
||||
let mut record_stable = |attr_id, hir_id, attr_index| {
|
||||
let expect_id =
|
||||
LintExpectationId::Stable { hir_id, attr_index, lint_index: None, attr_id: None };
|
||||
let expect_id = LintExpectationId::Stable { hir_id, attr_index, lint_index: None };
|
||||
unstable_to_stable_ids.entry(attr_id).or_insert(expect_id);
|
||||
};
|
||||
let mut push_expectations = |owner| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue