]> git.lizzy.rs Git - rust.git/commitdiff
Style fixes
authorDavid Cook <divergentdave@gmail.com>
Sat, 22 Feb 2020 01:05:24 +0000 (19:05 -0600)
committerDavid Cook <divergentdave@gmail.com>
Sun, 5 Apr 2020 15:04:53 +0000 (10:04 -0500)
tests/run-pass/reentrant-println.rs
tests/run-pass/sync.rs

index 3703d21e0421efa1dcfb41a690981daa43ab4306..09c4fc3f74d3e6681ee039a1064e50b562229fe2 100644 (file)
@@ -3,7 +3,7 @@
 // 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 @@ fn fmt(&self, _f: &mut Formatter<'_>) -> Result<(), Error> {
 }
 
 fn main() {
-    println!("\"Knock knock\" \"Who's {} there?\"", InterruptingCow());
+    println!("\"Knock knock\" \"Who's {} there?\"", InterruptingCow);
 }
index d6ce939c6c36ce471c8d4218631a03f520861288..46cad3c1620160fd21f8db76c429a4729e2a1260 100644 (file)
@@ -1,5 +1,3 @@
-// Requires full MIR on Windows.
-
 #![feature(rustc_private)]
 
 use std::sync::{Mutex, RwLock, TryLockError};