about summary refs log tree commit diff
path: root/src/librustdoc/scrape_examples.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-02-21 19:01:15 +0100
committerGitHub <noreply@github.com>2025-02-21 19:01:15 +0100
commita24eb0bae9b51df19a26c5241cabc3ebc008bd38 (patch)
tree4c954998c95fd05672973a5e3581a3cce2b5ce2c /src/librustdoc/scrape_examples.rs
parent2dc7573edd7a90a31baa2d751a53717702947d14 (diff)
parent806be25fc9d519d32db1941b0c67a06c8a6faa40 (diff)
downloadrust-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 'src/librustdoc/scrape_examples.rs')
-rw-r--r--src/librustdoc/scrape_examples.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/scrape_examples.rs b/src/librustdoc/scrape_examples.rs
index a36dcb0d30e..44551d75903 100644
--- a/src/librustdoc/scrape_examples.rs
+++ b/src/librustdoc/scrape_examples.rs
@@ -177,7 +177,7 @@ where
         // If the enclosing item has a span coming from a proc macro, then we also don't want to
         // include the example.
         let enclosing_item_span =
-            tcx.hir().span_with_body(tcx.hir().get_parent_item(ex.hir_id).into());
+            tcx.hir().span_with_body(tcx.hir_get_parent_item(ex.hir_id).into());
         if enclosing_item_span.from_expansion() {
             trace!("Rejecting expr ({call_span:?}) from macro item: {enclosing_item_span:?}");
             return;