diff options
| author | Gary Guo <gary@garyguo.net> | 2021-09-11 03:44:02 +0100 |
|---|---|---|
| committer | Gary Guo <gary@garyguo.net> | 2021-10-19 15:02:21 +0100 |
| commit | 93701569573b367aaeaf659af154f5ae0d49af2b (patch) | |
| tree | 6cf9bc8ba68559e4fb43739911ce9136b9a50cbc /library/std/src/panic.rs | |
| parent | 148f456cc6fd12a19f45a75b1fd758605c657d0d (diff) | |
| download | rust-93701569573b367aaeaf659af154f5ae0d49af2b.tar.gz rust-93701569573b367aaeaf659af154f5ae0d49af2b.zip | |
Deduplicate panic_fmt
std's begin_panic_fmt and core's panic_fmt are duplicates. Merge them to declutter code and remove a lang item.
Diffstat (limited to 'library/std/src/panic.rs')
| -rw-r--r-- | library/std/src/panic.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/panic.rs b/library/std/src/panic.rs index 21e9669c110..c0605b2f412 100644 --- a/library/std/src/panic.rs +++ b/library/std/src/panic.rs @@ -25,7 +25,7 @@ pub macro panic_2015 { $crate::rt::panic_display(&$arg) }), ($fmt:expr, $($arg:tt)+) => ({ - $crate::rt::begin_panic_fmt(&$crate::const_format_args!($fmt, $($arg)+)) + $crate::rt::panic_fmt($crate::const_format_args!($fmt, $($arg)+)) }), } |
