Skip to content

Commit 19ef764

Browse files
committed
Auto merge of #2122 - RalfJung:rustup, r=RalfJung
rustup I am on mobile and so I couldn't test this... let's see how it goes. ;)
2 parents 8f7c8f7 + ea63a69 commit 19ef764

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

rust-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2d691170885b32502b391b8b1a0d54d2419a5653
1+
e1ec3260d79497080ca86540562d410ba67d2a95

src/shims/posix/sync.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -876,8 +876,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
876876

877877
fn layout_of_maybe_uninit<'tcx>(tcx: TyCtxtAt<'tcx>, param: Ty<'tcx>) -> TyAndLayout<'tcx> {
878878
let def_id = tcx.require_lang_item(LangItem::MaybeUninit, None);
879-
let def_ty = tcx.type_of(def_id);
880-
let ty = def_ty.subst(*tcx, &[param.into()]);
879+
let ty = tcx.bound_type_of(def_id).subst(*tcx, &[param.into()]);
881880

882881
let param_env = tcx.param_env(def_id);
883882
tcx.layout_of(param_env.and(ty)).unwrap()

0 commit comments

Comments
 (0)