diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-06-27 14:18:47 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-06-27 14:18:47 +0530 |
| commit | 0bf0ea3a521c520171d5ef44edc84e456ae499ce (patch) | |
| tree | 98e3d0cef5367c8e08e7e280c5e2fe6699464bea /src/libstd | |
| parent | 1ce9b5927eedf6640af95db441bb3ddd78d54f1b (diff) | |
| parent | 30cde078c6887f7be79884054ec16334fb76a467 (diff) | |
| download | rust-0bf0ea3a521c520171d5ef44edc84e456ae499ce.tar.gz rust-0bf0ea3a521c520171d5ef44edc84e456ae499ce.zip | |
Rollup merge of #26596 - richo:richo-cleanup-macros, r=alexcrichton
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/macros.rs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs index 02c35e9526d..697b934c676 100644 --- a/src/libstd/macros.rs +++ b/src/libstd/macros.rs @@ -36,28 +36,6 @@ #[macro_export] #[stable(feature = "rust1", since = "1.0.0")] #[allow_internal_unstable] -/// The entry point for panic of Rust threads. -/// -/// This macro is used to inject panic into a Rust thread, causing the thread to -/// unwind and panic entirely. Each thread's panic can be reaped as the -/// `Box<Any>` type, and the single-argument form of the `panic!` macro will be -/// the value which is transmitted. -/// -/// The multi-argument form of this macro panics with a string and has the -/// `format!` syntax for building a string. -/// -/// # Examples -/// -/// ```should_panic -/// # #![allow(unreachable_code)] -/// panic!(); -/// panic!("this is a terrible mistake!"); -/// panic!(4); // panic with the value of 4 to be collected elsewhere -/// panic!("this is a {} {message}", "fancy", message = "message"); -/// ``` -#[macro_export] -#[stable(feature = "rust1", since = "1.0.0")] -#[allow_internal_unstable] macro_rules! panic { () => ({ panic!("explicit panic") |
