Skip to content

Commit 76fe485

Browse files
author
hyd-dev
committed
Update for TyCtxt::crates() change
1 parent 61605eb commit 76fe485

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rust-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e98897e5dc9898707bf4331c43b2e76ab7e282fe
1+
46ae6ee65df19c6a3fb683499c1203e749975e60

src/helpers.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ impl<'mir, 'tcx: 'mir> EvalContextExt<'mir, 'tcx> for crate::MiriEvalContext<'mi
2020

2121
/// Gets an instance for a path.
2222
fn try_resolve_did<'mir, 'tcx>(tcx: TyCtxt<'tcx>, path: &[&str]) -> Option<DefId> {
23-
tcx.crates().iter().find(|&&krate| tcx.crate_name(krate).as_str() == path[0]).and_then(
23+
tcx.crates(()).iter().find(|&&krate| tcx.crate_name(krate).as_str() == path[0]).and_then(
2424
|krate| {
2525
let krate = DefId { krate: *krate, index: CRATE_DEF_INDEX };
2626
let mut items = tcx.item_children(krate);

0 commit comments

Comments
 (0)