diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2024-07-04 10:12:39 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2024-08-31 14:01:07 +0000 |
| commit | 5f1f45b095f0980acd02bd3bbdc2a3ba9e8b8a38 (patch) | |
| tree | 0b767f54cb8a06fe31a4374ee5b1f1ac8622a361 /compiler/rustc_lint/src/expect.rs | |
| parent | 111b0a97b4c849d7abac396fc4c6dd6a159c8560 (diff) | |
| download | rust-5f1f45b095f0980acd02bd3bbdc2a3ba9e8b8a38.tar.gz rust-5f1f45b095f0980acd02bd3bbdc2a3ba9e8b8a38.zip | |
Remove attr_id from stable lint ids.
Diffstat (limited to 'compiler/rustc_lint/src/expect.rs')
| -rw-r--r-- | compiler/rustc_lint/src/expect.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_lint/src/expect.rs b/compiler/rustc_lint/src/expect.rs index d9fab1d00aa..d8afba3d505 100644 --- a/compiler/rustc_lint/src/expect.rs +++ b/compiler/rustc_lint/src/expect.rs @@ -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| { |
