diff options
| author | Steven Fackler <sfackler@gmail.com> | 2015-01-31 15:08:25 -0800 |
|---|---|---|
| committer | Steven Fackler <sfackler@gmail.com> | 2015-03-09 10:14:21 -0700 |
| commit | e2605b42c7ce37717118fe240f7d0e8c4eae3598 (patch) | |
| tree | 29aa2b8718f77fa3e1c04a60e0c8187e021768a7 /src/libstd/old_io | |
| parent | 2574009af0ff70dc233beab246db8f2d715be2cb (diff) | |
Rename #[should_fail] to #[should_panic]
Diffstat (limited to 'src/libstd/old_io')
| -rw-r--r-- | src/libstd/old_io/buffered.rs | 2 | ||||
| -rw-r--r-- | src/libstd/old_io/extensions.rs | 2 | ||||
| -rw-r--r-- | src/libstd/old_io/timer.rs | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/libstd/old_io/buffered.rs b/src/libstd/old_io/buffered.rs index fe2510b668f..cbb7bf04327 100644 --- a/src/libstd/old_io/buffered.rs +++ b/src/libstd/old_io/buffered.rs @@ -658,7 +658,7 @@ mod test { } #[test] - #[should_fail] + #[should_panic] fn dont_panic_in_drop_on_panicked_flush() { struct FailFlushWriter; diff --git a/src/libstd/old_io/extensions.rs b/src/libstd/old_io/extensions.rs index a2bc28962c3..ec30121d78d 100644 --- a/src/libstd/old_io/extensions.rs +++ b/src/libstd/old_io/extensions.rs @@ -396,7 +396,7 @@ mod test { } #[test] - #[should_fail] + #[should_panic] fn read_to_end_error() { let mut reader = ThreeChunkReader { count: 0, diff --git a/src/libstd/old_io/timer.rs b/src/libstd/old_io/timer.rs index de5f2141095..375fe6ce483 100644 --- a/src/libstd/old_io/timer.rs +++ b/src/libstd/old_io/timer.rs @@ -333,7 +333,7 @@ mod test { } #[test] - #[should_fail] + #[should_panic] fn oneshot_fail() { let mut timer = Timer::new().unwrap(); let _rx = timer.oneshot(Duration::milliseconds(1)); @@ -341,7 +341,7 @@ mod test { } #[test] - #[should_fail] + #[should_panic] fn period_fail() { let mut timer = Timer::new().unwrap(); let _rx = timer.periodic(Duration::milliseconds(1)); @@ -349,7 +349,7 @@ mod test { } #[test] - #[should_fail] + #[should_panic] fn normal_fail() { let _timer = Timer::new().unwrap(); panic!(); |
