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:
Myrddin Dundragon 2017-01-12 15:04:15 -05:00
parent 77d217069f
commit eb03b1a1ea

View File

@ -6,7 +6,7 @@ macro_rules! generate_panic
{ {
($($arg: tt)+) => ($($arg: tt)+) =>
({ ({
panic!(::std::fmt::format(format_args!($($arg)+))); panic!($($arg)+);
}) })
} }