about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/interpret/operand.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2023-09-21 13:25:40 +0200
committerGitHub <noreply@github.com>2023-09-21 13:25:40 +0200
commit0d2c603b12a5e9bedbde452f203355a3f66efab6 (patch)
treeda4a84dc2eb4c788e9b960f5ae4a850b202ea194 /compiler/rustc_const_eval/src/interpret/operand.rs
parent208f6ed95cbca95a0a4f28dd6a72524f1734a533 (diff)
parent667bba46b0dc1ed5f481431c48c24b8326e099a1 (diff)
downloadrust-0d2c603b12a5e9bedbde452f203355a3f66efab6.tar.gz
rust-0d2c603b12a5e9bedbde452f203355a3f66efab6.zip
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``
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret/operand.rs')
0 files changed, 0 insertions, 0 deletions