diff --git a/tests/run-pass/reentrant-println.rs b/tests/run-pass/reentrant-println.rs index 3703d21e0421..09c4fc3f74d3 100644 --- a/tests/run-pass/reentrant-println.rs +++ b/tests/run-pass/reentrant-println.rs @@ -3,7 +3,7 @@ use std::fmt::{Display, Error, Formatter}; // This test case exercises std::sys_common::remutex::ReentrantMutex // by calling println!() from inside fmt -struct InterruptingCow(); +struct InterruptingCow; impl Display for InterruptingCow { fn fmt(&self, _f: &mut Formatter<'_>) -> Result<(), Error> { @@ -13,5 +13,5 @@ impl Display for InterruptingCow { } fn main() { - println!("\"Knock knock\" \"Who's {} there?\"", InterruptingCow()); + println!("\"Knock knock\" \"Who's {} there?\"", InterruptingCow); } diff --git a/tests/run-pass/sync.rs b/tests/run-pass/sync.rs index d6ce939c6c36..46cad3c16201 100644 --- a/tests/run-pass/sync.rs +++ b/tests/run-pass/sync.rs @@ -1,5 +1,3 @@ -// Requires full MIR on Windows. - #![feature(rustc_private)] use std::sync::{Mutex, RwLock, TryLockError};