We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31f6350 commit 11f70f2Copy full SHA for 11f70f2
src/shims/native_lib.rs
@@ -72,7 +72,7 @@ trait EvalContextExtPriv<'tcx>: crate::MiriInterpCxExt<'tcx> {
72
}
73
// Functions with no declared return type (i.e., the default return)
74
// have the output_type `Tuple([])`.
75
- ty::Tuple(t_list) if t_list.len() == 0 => {
+ ty::Tuple(t_list) if t_list.is_empty() => {
76
unsafe { ffi::call::<()>(ptr, libffi_args.as_slice()) };
77
return interp_ok(ImmTy::uninit(dest.layout));
78
0 commit comments