summary refs log tree commit diff
path: root/src/libsyntax/util
diff options
context:
space:
mode:
authorSteven Fackler <sfackler@gmail.com>2015-01-31 15:08:25 -0800
committerSteven Fackler <sfackler@gmail.com>2015-03-09 10:14:21 -0700
commite2605b42c7ce37717118fe240f7d0e8c4eae3598 (patch)
tree29aa2b8718f77fa3e1c04a60e0c8187e021768a7 /src/libsyntax/util
parent2574009af0ff70dc233beab246db8f2d715be2cb (diff)
downloadrust-e2605b42c7ce37717118fe240f7d0e8c4eae3598.tar.gz
rust-e2605b42c7ce37717118fe240f7d0e8c4eae3598.zip
Rename #[should_fail] to #[should_panic]
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("");
     }