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/builtin.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/builtin.rs')
| -rw-r--r-- | compiler/rustc_lint/src/builtin.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/builtin.rs b/compiler/rustc_lint/src/builtin.rs index e449f110613..b5f09ff346a 100644 --- a/compiler/rustc_lint/src/builtin.rs +++ b/compiler/rustc_lint/src/builtin.rs @@ -466,7 +466,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingDoc { MethodLateContext::TraitAutoImpl => {} // If the method is an impl for an item with docs_hidden, don't doc. MethodLateContext::PlainImpl => { - let parent = cx.tcx.hir().get_parent_item(impl_item.hir_id()); + let parent = cx.tcx.hir_get_parent_item(impl_item.hir_id()); let impl_ty = cx.tcx.type_of(parent).instantiate_identity(); let outerdef = match impl_ty.kind() { ty::Adt(def, _) => Some(def.did()), |
