diff options
| author | Chris Morgan <me@chrismorgan.info> | 2015-07-30 06:29:24 +1000 |
|---|---|---|
| committer | Chris Morgan <me@chrismorgan.info> | 2015-07-30 06:29:24 +1000 |
| commit | fc5b79ce86072e469c6b80d1be53ea58d6feec76 (patch) | |
| tree | cd14fad914e7ca0e093a7b7272869a119aaf1c69 | |
| parent | 523ee8d37cb3aed6bbad16760850fa94253c2072 (diff) | |
| download | rust-fc5b79ce86072e469c6b80d1be53ea58d6feec76.tar.gz rust-fc5b79ce86072e469c6b80d1be53ea58d6feec76.zip | |
Use $crate in core::panic!
| -rw-r--r-- | src/libcore/macros.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/macros.rs b/src/libcore/macros.rs index 14bb82dff7d..9f4d61a50d5 100644 --- a/src/libcore/macros.rs +++ b/src/libcore/macros.rs @@ -17,7 +17,7 @@ macro_rules! panic { ); ($msg:expr) => ({ static _MSG_FILE_LINE: (&'static str, &'static str, u32) = ($msg, file!(), line!()); - ::core::panicking::panic(&_MSG_FILE_LINE) + $crate::panicking::panic(&_MSG_FILE_LINE) }); ($fmt:expr, $($arg:tt)*) => ({ // The leading _'s are to avoid dead code warnings if this is @@ -25,7 +25,7 @@ macro_rules! panic { // insufficient, since the user may have // `#[forbid(dead_code)]` and which cannot be overridden. static _FILE_LINE: (&'static str, u32) = (file!(), line!()); - ::core::panicking::panic_fmt(format_args!($fmt, $($arg)*), &_FILE_LINE) + $crate::panicking::panic_fmt(format_args!($fmt, $($arg)*), &_FILE_LINE) }); } |
