core: allow messages in unimplemented!() macro

This commit is contained in:
Sean McArthur 2017-06-07 17:06:55 -07:00
parent 81734e0e06
commit f51771939b

View File

@ -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.