Fixed the generate_panic macro.
This now just passes all the arguments to panic directly. This appears to work well with or without the Rust standard library.
This commit is contained in:
parent
77d217069f
commit
eb03b1a1ea
@ -6,7 +6,7 @@ macro_rules! generate_panic
|
||||
{
|
||||
($($arg: tt)+) =>
|
||||
({
|
||||
panic!(::std::fmt::format(format_args!($($arg)+)));
|
||||
panic!($($arg)+);
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user