1
0
Fork 0

Fix should_panic attributes

This commit is contained in:
edef 2017-02-25 14:24:36 +01:00
parent d07fcea0eb
commit 34ab0dc2cd
2 changed files with 3 additions and 3 deletions

View File

@ -81,7 +81,7 @@ mod tests {
} }
#[test] #[test]
#[should_panic="arg=0"] #[should_panic(expected = "arg=0")]
fn panic_after_start() { fn panic_after_start() {
unsafe { unsafe {
let stack = OsStack::new(4 << 20).unwrap(); let stack = OsStack::new(4 << 20).unwrap();
@ -92,7 +92,7 @@ mod tests {
} }
#[test] #[test]
#[should_panic="arg=1"] #[should_panic(expected = "arg=1")]
fn panic_after_swap() { fn panic_after_swap() {
unsafe { unsafe {
let stack = OsStack::new(4 << 20).unwrap(); let stack = OsStack::new(4 << 20).unwrap();

View File

@ -48,7 +48,7 @@ fn slice_too_small() {
} }
#[test] #[test]
#[should_panic="SliceStack too small"] #[should_panic(expected = "SliceStack too small")]
fn slice_too_small_unaligned() { fn slice_too_small_unaligned() {
unsafe { unsafe {
let ptr = heap::allocate(STACK_ALIGNMENT, STACK_ALIGNMENT); let ptr = heap::allocate(STACK_ALIGNMENT, STACK_ALIGNMENT);