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