Skip to content

Commit

Permalink
core: allow messages in unimplemented!() macro
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Jun 8, 2017
1 parent 81734e0 commit f517719
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libcore/macros.rs
Expand Up @@ -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.
Expand Down

0 comments on commit f517719

Please sign in to comment.