about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2016-08-23 22:48:02 +0200
committerGitHub <noreply@github.com>2016-08-23 22:48:02 +0200
commite3e439019fad69967b17fbd0981ef72c20aee101 (patch)
treeb0605fb5c0c6466eb51d76c2aa08a86253eca7ed
parent21d4ec9120ea04255f923c05dabda2e90ae74850 (diff)
parent66a2578064c2572a355f87f2405859a1c347b590 (diff)
downloadrust-e3e439019fad69967b17fbd0981ef72c20aee101.tar.gz
rust-e3e439019fad69967b17fbd0981ef72c20aee101.zip
Rollup merge of #35913 - frewsxcv:panic, r=steveklabnik
Mark panicking tests as `should_panic` instead of `no_run`.

None
-rw-r--r--src/doc/book/macros.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/book/macros.md b/src/doc/book/macros.md
index 9f40829f423..78fe07ec1be 100644
--- a/src/doc/book/macros.md
+++ b/src/doc/book/macros.md
@@ -662,7 +662,7 @@ Here are some common macros you’ll see in Rust code.
 This macro causes the current thread to panic. You can give it a message
 to panic with:
 
-```rust,no_run
+```rust,should_panic
 panic!("oh no!");
 ```
 
@@ -688,7 +688,7 @@ These two macros are used in tests. `assert!` takes a boolean. `assert_eq!`
 takes two values and checks them for equality. `true` passes, `false` `panic!`s.
 Like this:
 
-```rust,no_run
+```rust,should_panic
 // A-ok!
 
 assert!(true);