diff --git a/src/shims/foreign_items.rs b/src/shims/foreign_items.rs index f1b04afe0a62..7323a664bda8 100644 --- a/src/shims/foreign_items.rs +++ b/src/shims/foreign_items.rs @@ -203,7 +203,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx let ptr = this.read_scalar(ptr)?.not_undef()?; let ptr = this.force_ptr(ptr)?; if ptr.offset != Size::ZERO { - throw_unsup_format!("Pointer passed to miri_static_root must point to beginning of an allocated block"); + throw_unsup_format!("pointer passed to miri_static_root must point to beginning of an allocated block"); } this.machine.static_roots.push(ptr.alloc_id); } diff --git a/tests/compile-fail/memleak.rs b/tests/compile-fail/memleak.rs index c3b27abcdbb2..71b4e2f442f3 100644 --- a/tests/compile-fail/memleak.rs +++ b/tests/compile-fail/memleak.rs @@ -1,5 +1,3 @@ -// ignore-windows: We do not check leaks on Windows - //error-pattern: the evaluated program leaked memory fn main() { diff --git a/tests/compile-fail/memleak_rc.rs b/tests/compile-fail/memleak_rc.rs index 446d28681b9e..b2bc6722afb0 100644 --- a/tests/compile-fail/memleak_rc.rs +++ b/tests/compile-fail/memleak_rc.rs @@ -1,5 +1,3 @@ -// ignore-windows: We do not check leaks on Windows - //error-pattern: the evaluated program leaked memory use std::rc::Rc;