1
Fork 0

Move methods from Map to TyCtxt, part 5.

This eliminates all methods on `Map`. Actually removing `Map` will occur
in a follow-up PR.
This commit is contained in:
Nicholas Nethercote 2025-04-02 07:04:24 +11:00
parent 0b4a81a4ef
commit 6713f34ee4
75 changed files with 175 additions and 208 deletions

View file

@ -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 =