core: allow messages in unimplemented!() macro
This commit is contained in:
parent
81734e0e06
commit
f51771939b
1 changed files with 2 additions and 1 deletions
|
@ -542,7 +542,8 @@ macro_rules! unreachable {
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
macro_rules! unimplemented {
|
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.
|
/// Built-in macros to the compiler itself.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue