diff options
| author | bors <bors@rust-lang.org> | 2015-03-09 18:32:16 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-03-09 18:32:16 +0000 |
| commit | 638832e64cc62ec46721161ca19731ba00d4da58 (patch) | |
| tree | c4d523c60793d664d81a1ee0a07a69193f371f10 /src/libsyntax/util | |
| parent | 777f5d959930711acc321a50c493b984b780f156 (diff) | |
| parent | e2605b42c7ce37717118fe240f7d0e8c4eae3598 (diff) | |
| download | rust-638832e64cc62ec46721161ca19731ba00d4da58.tar.gz rust-638832e64cc62ec46721161ca19731ba00d4da58.zip | |
Auto merge of #21824 - sfackler:should_panic, r=alexcrichton
Diffstat (limited to 'src/libsyntax/util')
| -rw-r--r-- | src/libsyntax/util/interner.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/util/small_vector.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/util/interner.rs b/src/libsyntax/util/interner.rs index 5be45a2698f..7ae9e4646e5 100644 --- a/src/libsyntax/util/interner.rs +++ b/src/libsyntax/util/interner.rs @@ -234,7 +234,7 @@ mod tests { use ast::Name; #[test] - #[should_fail] + #[should_panic] fn i1 () { let i : Interner<RcStr> = Interner::new(); i.get(Name(13)); diff --git a/src/libsyntax/util/small_vector.rs b/src/libsyntax/util/small_vector.rs index 90df23882a1..5bd6591cfb0 100644 --- a/src/libsyntax/util/small_vector.rs +++ b/src/libsyntax/util/small_vector.rs @@ -236,13 +236,13 @@ mod test { } #[test] - #[should_fail] + #[should_panic] fn test_expect_one_zero() { let _: isize = SmallVector::zero().expect_one(""); } #[test] - #[should_fail] + #[should_panic] fn test_expect_one_many() { SmallVector::many(vec!(1, 2)).expect_one(""); } |
