]> git.lizzy.rs Git - rust.git/commitdiff
fix stage0 build
authorDaniel Micay <danielmicay@gmail.com>
Fri, 28 Jun 2013 04:23:38 +0000 (00:23 -0400)
committerDaniel Micay <danielmicay@gmail.com>
Fri, 28 Jun 2013 04:23:38 +0000 (00:23 -0400)
src/libstd/util.rs

index fe1087a04389a1519ac652cd6f938d70d191273e..fd29d7dc14bd7d947d9ad78f403841ccc19b94c9 100644 (file)
@@ -173,16 +173,18 @@ fn test_noncopyable() {
 
         // verify that `#[unsafe_no_drop_flag]` works as intended on a zero-size struct
 
-        static mut did_run: bool = false;
+        // NOTE: uncomment after snapshot, will not parse yet
+        //static mut did_run: bool = false;
 
         struct Foo { five: int }
 
         impl Drop for Foo {
             fn drop(&self) {
                 assert_eq!(self.five, 5);
-                unsafe {
-                    did_run = true;
-                }
+                // NOTE: uncomment after snapshot, will not parse yet
+                //unsafe {
+                    //did_run = true;
+                //}
             }
         }
 
@@ -190,6 +192,7 @@ fn drop(&self) {
             let _a = (NonCopyable, Foo { five: 5 }, NonCopyable);
         }
 
-        unsafe { assert_eq!(did_run, true); }
+        // NOTE: uncomment after snapshot, will not parse yet
+        //unsafe { assert_eq!(did_run, true); }
     }
 }