rust/library/core
Guillaume Gomez 0d2c603b12
Rollup merge of #116007 - m-ou-se:const-panic-fmt-panic-display, r=oli-obk
Call panic_display directly in const_panic_fmt.

`panic_str` just directly calls `panic_display`. The only reason `panic_str` exists, is for a lint to detect an expansion of `panic_2015!(expr)` (which expands to `panic_str`).

It is `panic_display` that is hooked by const-eval, which is the reason we call it here.

Part of https://github.com/rust-lang/rust/issues/116005

r? ``@oli-obk``
2023-09-21 13:25:40 +02:00
..
benches fix 2023-07-23 09:58:31 +00:00
src Rollup merge of #116007 - m-ou-se:const-panic-fmt-panic-display, r=oli-obk 2023-09-21 13:25:40 +02:00
tests Auto merge of #113295 - clarfonthey:ascii-step, r=cuviper 2023-09-02 00:02:50 +00:00
Cargo.toml Update rand in the stdlib tests, and remove the getrandom feature from it 2023-01-04 14:52:41 -08:00