Skip to content

Commit 41c05c4

Browse files
committed
miri: update reference to PAL module on Windows
1 parent d6efead commit 41c05c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/tools/miri/src/helpers.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
217217

218218
/// Helper function to get a `windows` constant as a `Scalar`.
219219
fn eval_windows(&self, module: &str, name: &str) -> Scalar<Provenance> {
220-
self.eval_context_ref().eval_path_scalar(&["std", "sys", "windows", module, name])
220+
self.eval_context_ref().eval_path_scalar(&["std", "sys", "pal","windows", module, name])
221221
}
222222

223223
/// Helper function to get a `windows` constant as a `u32`.
@@ -249,7 +249,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
249249
fn windows_ty_layout(&self, name: &str) -> TyAndLayout<'tcx> {
250250
let this = self.eval_context_ref();
251251
let ty = this
252-
.resolve_path(&["std", "sys", "windows", "c", name], Namespace::TypeNS)
252+
.resolve_path(&["std", "sys", "pal","windows", "c", name], Namespace::TypeNS)
253253
.ty(*this.tcx, ty::ParamEnv::reveal_all());
254254
this.layout_of(ty).unwrap()
255255
}

0 commit comments

Comments
 (0)