diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-02-21 19:01:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-21 19:01:15 +0100 |
| commit | a24eb0bae9b51df19a26c5241cabc3ebc008bd38 (patch) | |
| tree | 4c954998c95fd05672973a5e3581a3cce2b5ce2c /compiler/rustc_lint/src/internal.rs | |
| parent | 2dc7573edd7a90a31baa2d751a53717702947d14 (diff) | |
| parent | 806be25fc9d519d32db1941b0c67a06c8a6faa40 (diff) | |
| download | rust-a24eb0bae9b51df19a26c5241cabc3ebc008bd38.tar.gz rust-a24eb0bae9b51df19a26c5241cabc3ebc008bd38.zip | |
Rollup merge of #137350 - nnethercote:remove-Map-3, r=Zalathar
Move methods from Map to TyCtxt, part 3. A follow-up to #137162. r? `@Zalathar`
Diffstat (limited to 'compiler/rustc_lint/src/internal.rs')
| -rw-r--r-- | compiler/rustc_lint/src/internal.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_lint/src/internal.rs b/compiler/rustc_lint/src/internal.rs index ddc9ae1594f..1f999bbea5f 100644 --- a/compiler/rustc_lint/src/internal.rs +++ b/compiler/rustc_lint/src/internal.rs @@ -497,7 +497,7 @@ impl Diagnostics { return; }; - for (hir_id, _parent) in cx.tcx.hir().parent_iter(current_id) { + for (hir_id, _parent) in cx.tcx.hir_parent_iter(current_id) { if let Some(owner_did) = hir_id.as_owner() && cx.tcx.has_attr(owner_did, sym::rustc_lint_diagnostics) { @@ -512,7 +512,7 @@ impl Diagnostics { // // Otherwise, emit a `DIAGNOSTIC_OUTSIDE_OF_IMPL` lint. let mut is_inside_appropriate_impl = false; - for (_hir_id, parent) in cx.tcx.hir().parent_iter(current_id) { + for (_hir_id, parent) in cx.tcx.hir_parent_iter(current_id) { debug!(?parent); if let Node::Item(Item { kind: ItemKind::Impl(impl_), .. }) = parent && let Impl { of_trait: Some(of_trait), .. } = impl_ |
