diff options
| author | Jana Dönszelmann <jana@donsz.nl> | 2025-02-09 22:49:28 +0100 | 
|---|---|---|
| committer | Jana Dönszelmann <jana@donsz.nl> | 2025-02-24 14:22:31 +0100 | 
| commit | 115b3b03b09cf71aca67c974ea0d4888c86b3012 (patch) | |
| tree | 13c8b6244f1c22de9c030241cab2658a5a393855 /compiler/rustc_lint/src/expect.rs | |
| parent | f43e549b88698568581a9d329c7582e3708ac187 (diff) | |
| download | rust-115b3b03b09cf71aca67c974ea0d4888c86b3012.tar.gz rust-115b3b03b09cf71aca67c974ea0d4888c86b3012.zip | |
Change span field accesses to method calls
Diffstat (limited to 'compiler/rustc_lint/src/expect.rs')
| -rw-r--r-- | compiler/rustc_lint/src/expect.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/compiler/rustc_lint/src/expect.rs b/compiler/rustc_lint/src/expect.rs index ef79f1301e5..f0742e73d05 100644 --- a/compiler/rustc_lint/src/expect.rs +++ b/compiler/rustc_lint/src/expect.rs @@ -38,7 +38,7 @@ fn check_expectations(tcx: TyCtxt<'_>, tool_filter: Option<Symbol>) { } LintExpectationId::Stable { hir_id, attr_index, lint_index: Some(lint_index) } => { // We are an `eval_always` query, so looking at the attribute's `AttrId` is ok. - let attr_id = tcx.hir().attrs(hir_id)[attr_index as usize].id; + let attr_id = tcx.hir().attrs(hir_id)[attr_index as usize].id(); (attr_id, lint_index) } _ => panic!("fulfilled expectations must have a lint index"), | 
