about summary refs log tree commit diff
path: root/src/libsyntax/util
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-03-09 18:32:16 +0000
committerbors <bors@rust-lang.org>2015-03-09 18:32:16 +0000
commit638832e64cc62ec46721161ca19731ba00d4da58 (patch)
treec4d523c60793d664d81a1ee0a07a69193f371f10 /src/libsyntax/util
parent777f5d959930711acc321a50c493b984b780f156 (diff)
parente2605b42c7ce37717118fe240f7d0e8c4eae3598 (diff)
downloadrust-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.rs2
-rw-r--r--src/libsyntax/util/small_vector.rs4
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("");
     }