Skip to content

Commit 647ee17

Browse files
author
hyd-dev
committed
original_crate_name -> crate_name
1 parent 453affa commit 647ee17

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d9feaaa548ce380159a1de68f4f6e605db9a9fc5
1+
da865095cf378fbfd07145c25fe5837ea091efeb

src/helpers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ impl<'mir, 'tcx: 'mir> EvalContextExt<'mir, 'tcx> for crate::MiriEvalContext<'mi
1919

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

0 commit comments

Comments
 (0)