diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2013-07-22 00:06:29 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2013-07-22 01:09:48 -0400 |
| commit | ed67cdb73c9cf3a1cba768b3122aa03564b43ccc (patch) | |
| tree | b7676278f04d251c9d0a3132d489ecc7f650cef8 /src/libstd/util.rs | |
| parent | fc058191818e4440d36e5ed4ef61bc0a9711be11 (diff) | |
| download | rust-ed67cdb73c9cf3a1cba768b3122aa03564b43ccc.tar.gz rust-ed67cdb73c9cf3a1cba768b3122aa03564b43ccc.zip | |
new snapshot
Diffstat (limited to 'src/libstd/util.rs')
| -rw-r--r-- | src/libstd/util.rs | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/libstd/util.rs b/src/libstd/util.rs index 8e7efeb532a..5ae45b74dd8 100644 --- a/src/libstd/util.rs +++ b/src/libstd/util.rs @@ -175,18 +175,16 @@ mod tests { // verify that `#[unsafe_no_drop_flag]` works as intended on a zero-size struct - // NOTE: uncomment after snapshot, will not parse yet - //static mut did_run: bool = false; + static mut did_run: bool = false; struct Foo { five: int } impl Drop for Foo { fn drop(&self) { assert_eq!(self.five, 5); - // NOTE: uncomment after snapshot, will not parse yet - //unsafe { - //did_run = true; - //} + unsafe { + did_run = true; + } } } @@ -194,7 +192,6 @@ mod tests { let _a = (NonCopyable, Foo { five: 5 }, NonCopyable); } - // NOTE: uncomment after snapshot, will not parse yet - //unsafe { assert_eq!(did_run, true); } + unsafe { assert_eq!(did_run, true); } } } |
