diff options
| author | bors <bors@rust-lang.org> | 2025-08-16 10:15:46 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-08-16 10:15:46 +0000 |
| commit | 2e2642e641a941f0a1400c7827fd89aa86fef8f4 (patch) | |
| tree | a5101e62d507eefd818274b0fcb477437c50b3c2 /compiler/rustc_hir/src | |
| parent | 1ae7c4907275f10b3db9e886bc8809ec063e45ee (diff) | |
| parent | 08acba30718281a068ab978f8feded9b871ec9db (diff) | |
| download | rust-2e2642e641a941f0a1400c7827fd89aa86fef8f4.tar.gz rust-2e2642e641a941f0a1400c7827fd89aa86fef8f4.zip | |
Auto merge of #145304 - m-ou-se:simplify-panic, r=oli-obk
Revert "Partially outline code inside the panic! macro". This reverts https://github.com/rust-lang/rust/pull/115670 Without any tests/benchmarks that show some improvement, it's hard to know whether the change had any positive effect. (And if it did, whether that effect is still achieved today.)
Diffstat (limited to 'compiler/rustc_hir/src')
| -rw-r--r-- | compiler/rustc_hir/src/lang_items.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_hir/src/lang_items.rs b/compiler/rustc_hir/src/lang_items.rs index 75c04b23ed6..905b84a8cbe 100644 --- a/compiler/rustc_hir/src/lang_items.rs +++ b/compiler/rustc_hir/src/lang_items.rs @@ -286,6 +286,7 @@ language_item_table! { Panic, sym::panic, panic_fn, Target::Fn, GenericRequirement::Exact(0); PanicNounwind, sym::panic_nounwind, panic_nounwind, Target::Fn, GenericRequirement::Exact(0); PanicFmt, sym::panic_fmt, panic_fmt, Target::Fn, GenericRequirement::None; + PanicDisplay, sym::panic_display, panic_display, Target::Fn, GenericRequirement::None; ConstPanicFmt, sym::const_panic_fmt, const_panic_fmt, Target::Fn, GenericRequirement::None; PanicBoundsCheck, sym::panic_bounds_check, panic_bounds_check_fn, Target::Fn, GenericRequirement::Exact(0); PanicMisalignedPointerDereference, sym::panic_misaligned_pointer_dereference, panic_misaligned_pointer_dereference_fn, Target::Fn, GenericRequirement::Exact(0); |
