miri: update reference to PAL module on Windows
This commit is contained in:
parent
d6efeadb06
commit
41c05c46ed
@ -217,7 +217,7 @@ fn eval_libc_u32(&self, name: &str) -> u32 {
|
|||||||
|
|
||||||
/// Helper function to get a `windows` constant as a `Scalar`.
|
/// Helper function to get a `windows` constant as a `Scalar`.
|
||||||
fn eval_windows(&self, module: &str, name: &str) -> Scalar<Provenance> {
|
fn eval_windows(&self, module: &str, name: &str) -> Scalar<Provenance> {
|
||||||
self.eval_context_ref().eval_path_scalar(&["std", "sys", "windows", module, name])
|
self.eval_context_ref().eval_path_scalar(&["std", "sys", "pal","windows", module, name])
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Helper function to get a `windows` constant as a `u32`.
|
/// Helper function to get a `windows` constant as a `u32`.
|
||||||
@ -249,7 +249,7 @@ fn libc_ty_layout(&self, name: &str) -> TyAndLayout<'tcx> {
|
|||||||
fn windows_ty_layout(&self, name: &str) -> TyAndLayout<'tcx> {
|
fn windows_ty_layout(&self, name: &str) -> TyAndLayout<'tcx> {
|
||||||
let this = self.eval_context_ref();
|
let this = self.eval_context_ref();
|
||||||
let ty = this
|
let ty = this
|
||||||
.resolve_path(&["std", "sys", "windows", "c", name], Namespace::TypeNS)
|
.resolve_path(&["std", "sys", "pal","windows", "c", name], Namespace::TypeNS)
|
||||||
.ty(*this.tcx, ty::ParamEnv::reveal_all());
|
.ty(*this.tcx, ty::ParamEnv::reveal_all());
|
||||||
this.layout_of(ty).unwrap()
|
this.layout_of(ty).unwrap()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user