Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f517719

Browse files
committedJun 8, 2017
core: allow messages in unimplemented!() macro
1 parent 81734e0 commit f517719

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/libcore/macros.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,8 @@ macro_rules! unreachable {
542542
#[macro_export]
543543
#[stable(feature = "rust1", since = "1.0.0")]
544544
macro_rules! unimplemented {
545-
() => (panic!("not yet implemented"))
545+
() => (panic!("not yet implemented"));
546+
($($arg:tt)+) => (panic!("not yet implemented: {}", format_args!($($arg)*)));
546547
}
547548

548549
/// Built-in macros to the compiler itself.

0 commit comments

Comments
 (0)
Failed to load comments.