Skip to content

Commit 02b0bc3

Browse files
committed
miri: fix build
It isn't clear why the `Deref` impl isn't found for this in a stage two build, but presumably relates to `rustc_middle::ty::RawList` containing an extern type and `Deref` not yet being relaxed to `PointeeSized` (this is technically a breaking change but unlikely to be one and will be tested in a follow-up).
1 parent 8ecfe23 commit 02b0bc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/miri/src/shims/native_lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ trait EvalContextExtPriv<'tcx>: crate::MiriInterpCxExt<'tcx> {
7272
}
7373
// Functions with no declared return type (i.e., the default return)
7474
// have the output_type `Tuple([])`.
75-
ty::Tuple(t_list) if t_list.is_empty() => {
75+
ty::Tuple(t_list) if (*t_list).deref().is_empty() => {
7676
unsafe { ffi::call::<()>(ptr, libffi_args.as_slice()) };
7777
return interp_ok(ImmTy::uninit(dest.layout));
7878
}

0 commit comments

Comments
 (0)