about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-04-02 07:04:24 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2025-04-02 10:00:46 +1100
commit6713f34ee4f0ef669f8860b7f8ab1442440071b3 (patch)
tree1fd35ac94aa4ad342e63d0a5d2a3a12ec14f0ef6 /compiler/rustc_const_eval/src
parent0b4a81a4ef637117b365c3c51a5326f1c4a90ded (diff)
downloadrust-6713f34ee4f0ef669f8860b7f8ab1442440071b3.tar.gz
rust-6713f34ee4f0ef669f8860b7f8ab1442440071b3.zip
Move methods from `Map` to `TyCtxt`, part 5.
This eliminates all methods on `Map`. Actually removing `Map` will occur
in a follow-up PR.
Diffstat (limited to 'compiler/rustc_const_eval/src')
-rw-r--r--compiler/rustc_const_eval/src/const_eval/valtrees.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/const_eval/valtrees.rs b/compiler/rustc_const_eval/src/const_eval/valtrees.rs
index 3776fb55c2e..34239ae1d15 100644
--- a/compiler/rustc_const_eval/src/const_eval/valtrees.rs
+++ b/compiler/rustc_const_eval/src/const_eval/valtrees.rs
@@ -256,7 +256,7 @@ pub(crate) fn eval_to_valtree<'tcx>(
         Err(err) => {
             let did = cid.instance.def_id();
             let global_const_id = cid.display(tcx);
-            let span = tcx.hir().span_if_local(did);
+            let span = tcx.hir_span_if_local(did);
             match err {
                 ValTreeCreationError::NodesOverflow => {
                     let handled =