diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-02-21 07:54:35 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-02-21 14:31:09 +1100 |
| commit | 806be25fc9d519d32db1941b0c67a06c8a6faa40 (patch) | |
| tree | 3c0b3d57fe4f10663e171164338aeafead10d545 /src/librustdoc/scrape_examples.rs | |
| parent | 43c2b0086a60ad9864af5ead49b058e8d8ef1de8 (diff) | |
| download | rust-806be25fc9d519d32db1941b0c67a06c8a6faa40.tar.gz rust-806be25fc9d519d32db1941b0c67a06c8a6faa40.zip | |
Move methods from Map to TyCtxt, part 3.
Continuing the work from #137162. Every method gains a `hir_` prefix.
Diffstat (limited to 'src/librustdoc/scrape_examples.rs')
| -rw-r--r-- | src/librustdoc/scrape_examples.rs | 2 |
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; |
