Skip to content

Commit 67e7eb4

Browse files
committed
Auto merge of #1484 - RalfJung:rustup, r=RalfJung
rustup Following rust-lang/rust#69749 I added some `ty::ParamEnv::reveal_all()` even though @eddyb advised me in the past to avoid those.
2 parents c44f1ae + 7d6aec6 commit 67e7eb4

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

rust-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
567ad7455d5f25f6b38d2fded1cb621e0c34a48b
1+
4825e12fc9c79954aa0fe18f5521efa6c19c7539

src/helpers.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,14 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
9292
/// Helper function to get the `TyAndLayout` of a `libc` type
9393
fn libc_ty_layout(&mut self, name: &str) -> InterpResult<'tcx, TyAndLayout<'tcx>> {
9494
let this = self.eval_context_mut();
95-
let ty = this.resolve_path(&["libc", name]).monomorphic_ty(*this.tcx);
95+
let ty = this.resolve_path(&["libc", name]).ty(*this.tcx, ty::ParamEnv::reveal_all());
9696
this.layout_of(ty)
9797
}
9898

9999
/// Helper function to get the `TyAndLayout` of a `windows` type
100100
fn windows_ty_layout(&mut self, name: &str) -> InterpResult<'tcx, TyAndLayout<'tcx>> {
101101
let this = self.eval_context_mut();
102-
let ty = this.resolve_path(&["std", "sys", "windows", "c", name]).monomorphic_ty(*this.tcx);
102+
let ty = this.resolve_path(&["std", "sys", "windows", "c", name]).ty(*this.tcx, ty::ParamEnv::reveal_all());
103103
this.layout_of(ty)
104104
}
105105

src/shims/posix/fs.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use log::trace;
99

1010
use rustc_data_structures::fx::FxHashMap;
1111
use rustc_target::abi::{Align, LayoutOf, Size};
12+
use rustc_middle::ty;
1213

1314
use crate::*;
1415
use stacked_borrows::Tag;
@@ -670,7 +671,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
670671
// function and `resolve_path` is returning the latter.
671672
let statx_ty = this
672673
.resolve_path(&["libc", "unix", "linux_like", "linux", "gnu", "statx"])
673-
.monomorphic_ty(*this.tcx);
674+
.ty(*this.tcx, ty::ParamEnv::reveal_all());
674675
let statxbuf_ty = this.tcx.mk_mut_ptr(statx_ty);
675676
let statxbuf_layout = this.layout_of(statxbuf_ty)?;
676677
let statxbuf_imm = ImmTy::from_scalar(statxbuf_scalar, statxbuf_layout);

0 commit comments

Comments
 (0)