about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/late.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-02-21 18:33:05 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2025-03-12 08:55:37 +1100
commit256c27e748b477c1ec1c59bdc23afade5eec84aa (patch)
tree4d3d238ca0b2c12f6834797810e19a6d4602deba /compiler/rustc_lint/src/late.rs
parent281af35cc33e315bd6b52c8a0578108ece75e265 (diff)
downloadrust-256c27e748b477c1ec1c59bdc23afade5eec84aa.tar.gz
rust-256c27e748b477c1ec1c59bdc23afade5eec84aa.zip
Move methods from `Map` to `TyCtxt`, part 4.
Continuing the work from #137350.

Removes the unused methods: `expect_variant`, `expect_field`,
`expect_foreign_item`.

Every method gains a `hir_` prefix.
Diffstat (limited to 'compiler/rustc_lint/src/late.rs')
-rw-r--r--compiler/rustc_lint/src/late.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/late.rs b/compiler/rustc_lint/src/late.rs
index 23d6efa0508..852bb01c096 100644
--- a/compiler/rustc_lint/src/late.rs
+++ b/compiler/rustc_lint/src/late.rs
@@ -48,7 +48,7 @@ impl<'tcx, T: LateLintPass<'tcx>> LateContextAndPass<'tcx, T> {
     where
         F: FnOnce(&mut Self),
     {
-        let attrs = self.context.tcx.hir().attrs(id);
+        let attrs = self.context.tcx.hir_attrs(id);
         let prev = self.context.last_node_with_lint_attrs;
         self.context.last_node_with_lint_attrs = id;
         debug!("late context: enter_attrs({:?})", attrs);