Auto merge of #1844 - hyd-dev:rustup, r=RalfJung
Update for `TyCtxt::crates()` change cc rust-lang/rust#86792
This commit is contained in:
commit
05fdec916a
@ -1 +1 @@
|
||||
e98897e5dc9898707bf4331c43b2e76ab7e282fe
|
||||
46ae6ee65df19c6a3fb683499c1203e749975e60
|
||||
|
@ -20,7 +20,7 @@ impl<'mir, 'tcx: 'mir> EvalContextExt<'mir, 'tcx> for crate::MiriEvalContext<'mi
|
||||
|
||||
/// Gets an instance for a path.
|
||||
fn try_resolve_did<'mir, 'tcx>(tcx: TyCtxt<'tcx>, path: &[&str]) -> Option<DefId> {
|
||||
tcx.crates().iter().find(|&&krate| tcx.crate_name(krate).as_str() == path[0]).and_then(
|
||||
tcx.crates(()).iter().find(|&&krate| tcx.crate_name(krate).as_str() == path[0]).and_then(
|
||||
|krate| {
|
||||
let krate = DefId { krate: *krate, index: CRATE_DEF_INDEX };
|
||||
let mut items = tcx.item_children(krate);
|
||||
|
Loading…
Reference in New Issue
Block a user