diff options
| author | Sean McArthur <sean.monstar@gmail.com> | 2017-06-07 17:06:55 -0700 |
|---|---|---|
| committer | Sean McArthur <sean.monstar@gmail.com> | 2017-06-07 17:06:55 -0700 |
| commit | f51771939ba5b36ec89b9f0b51c2cbda51164676 (patch) | |
| tree | c2b91250eaa6e9003ec55757f6317aa43dfdd737 | |
| parent | 81734e0e06d24cf580dd5352c64d10110e4d3b7b (diff) | |
| download | rust-f51771939ba5b36ec89b9f0b51c2cbda51164676.tar.gz rust-f51771939ba5b36ec89b9f0b51c2cbda51164676.zip | |
core: allow messages in unimplemented!() macro
| -rw-r--r-- | src/libcore/macros.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcore/macros.rs b/src/libcore/macros.rs index bf4e414d416..320d3236840 100644 --- a/src/libcore/macros.rs +++ b/src/libcore/macros.rs @@ -542,7 +542,8 @@ macro_rules! unreachable { #[macro_export] #[stable(feature = "rust1", since = "1.0.0")] macro_rules! unimplemented { - () => (panic!("not yet implemented")) + () => (panic!("not yet implemented")); + ($($arg:tt)+) => (panic!("not yet implemented: {}", format_args!($($arg)*))); } /// Built-in macros to the compiler itself. |
