Skip to content

Commit c45af01

Browse files
committed
fix stage0 build
1 parent 5fccce4 commit c45af01

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/libstd/util.rs

+8-5
Original file line numberDiff line numberDiff line change
@@ -173,23 +173,26 @@ mod tests {
173173

174174
// verify that `#[unsafe_no_drop_flag]` works as intended on a zero-size struct
175175

176-
static mut did_run: bool = false;
176+
// NOTE: uncomment after snapshot, will not parse yet
177+
//static mut did_run: bool = false;
177178

178179
struct Foo { five: int }
179180

180181
impl Drop for Foo {
181182
fn drop(&self) {
182183
assert_eq!(self.five, 5);
183-
unsafe {
184-
did_run = true;
185-
}
184+
// NOTE: uncomment after snapshot, will not parse yet
185+
//unsafe {
186+
//did_run = true;
187+
//}
186188
}
187189
}
188190

189191
{
190192
let _a = (NonCopyable, Foo { five: 5 }, NonCopyable);
191193
}
192194

193-
unsafe { assert_eq!(did_run, true); }
195+
// NOTE: uncomment after snapshot, will not parse yet
196+
//unsafe { assert_eq!(did_run, true); }
194197
}
195198
}

0 commit comments

Comments
 (0)