Skip to content

Commit 5dde0fe

Browse files
committed
Auto merge of #1822 - hyd-dev:rustup, r=RalfJung
`original_crate_name` -> `crate_name` `original_crate_name` was removed in rust-lang/rust#85904, and according to that PR, it "had the exact same implementation" as `crate_name`. cc rust-lang/rust#85946
2 parents 453affa + 647ee17 commit 5dde0fe

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)