diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-02-21 18:33:05 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-03-12 08:55:37 +1100 |
| commit | 256c27e748b477c1ec1c59bdc23afade5eec84aa (patch) | |
| tree | 4d3d238ca0b2c12f6834797810e19a6d4602deba /src/librustdoc/doctest.rs | |
| parent | 281af35cc33e315bd6b52c8a0578108ece75e265 (diff) | |
| download | rust-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 'src/librustdoc/doctest.rs')
| -rw-r--r-- | src/librustdoc/doctest.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/doctest.rs b/src/librustdoc/doctest.rs index 88af9a7388c..f7f0c9766e2 100644 --- a/src/librustdoc/doctest.rs +++ b/src/librustdoc/doctest.rs @@ -216,7 +216,7 @@ pub(crate) fn run(dcx: DiagCtxtHandle<'_>, input: Input, options: RustdocOptions let collector = rustc_interface::create_and_enter_global_ctxt(compiler, krate, |tcx| { let crate_name = tcx.crate_name(LOCAL_CRATE).to_string(); - let crate_attrs = tcx.hir().attrs(CRATE_HIR_ID); + let crate_attrs = tcx.hir_attrs(CRATE_HIR_ID); let opts = scrape_test_config(crate_name, crate_attrs, args_path); let enable_per_target_ignores = options.enable_per_target_ignores; |
