core: allow messages in unimplemented!() macro
This commit is contained in:
parent
81734e0e06
commit
f51771939b
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user