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 /compiler/rustc_ty_utils/src/implied_bounds.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 'compiler/rustc_ty_utils/src/implied_bounds.rs')
| -rw-r--r-- | compiler/rustc_ty_utils/src/implied_bounds.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ty_utils/src/implied_bounds.rs b/compiler/rustc_ty_utils/src/implied_bounds.rs index 6205578bf74..aeaa83c77b5 100644 --- a/compiler/rustc_ty_utils/src/implied_bounds.rs +++ b/compiler/rustc_ty_utils/src/implied_bounds.rs @@ -161,7 +161,7 @@ fn fn_sig_spans(tcx: TyCtxt<'_>, def_id: LocalDefId) -> impl Iterator<Item = Spa } fn impl_spans(tcx: TyCtxt<'_>, def_id: LocalDefId) -> impl Iterator<Item = Span> { - let item = tcx.hir().expect_item(def_id); + let item = tcx.hir_expect_item(def_id); if let hir::ItemKind::Impl(impl_) = item.kind { let trait_args = impl_ .of_trait |
