diff options
| author | Tobba <tobias.haegermarck@gmail.com> | 2014-09-28 02:00:13 +0200 |
|---|---|---|
| committer | Tobba <tobias.haegermarck@gmail.com> | 2014-09-28 02:02:31 +0200 |
| commit | 3b9732eae7560542c684cb0584e76946faaee0e9 (patch) | |
| tree | 621e5efcd90c8df3f96c95add60d124508b3a44f /src/libcore/macros.rs | |
| parent | 9a68da7401d9bef645a8b6a4e0ce4cae12604df4 (diff) | |
Defailbloat fail!(&'static str)
Diffstat (limited to 'src/libcore/macros.rs')
| -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 0f972a67029..17fcf025457 100644 --- a/src/libcore/macros.rs +++ b/src/libcore/macros.rs @@ -17,8 +17,8 @@ macro_rules! fail( fail!("{}", "explicit failure") ); ($msg:expr) => ({ - static _FILE_LINE: (&'static str, uint) = (file!(), line!()); - ::core::failure::fail_str($msg, &_FILE_LINE) + static _MSG_FILE_LINE: (&'static str, &'static str, uint) = ($msg, file!(), line!()); + ::core::failure::fail(&_MSG_FILE_LINE) }); ($fmt:expr, $($arg:tt)*) => ({ // a closure can't have return type !, so we need a full |
