rust/library/std
Guillaume Gomez eb62779f2d
Rollup merge of #88954 - nbdd0121:panic3, r=oli-obk
Allow `panic!("{}", computed_str)` in const fn.

Special-case `panic!("{}", arg)` and translate it to `panic_display(&arg)`. `panic_display` will behave like `panic_any` in cosnt eval and behave like `panic!(format_args!("{}", arg))` in runtime.

This should bring Rust 2015 and 2021 to feature parity in terms of `const_panic`; and hopefully would unblock the stabilisation of #51999.

`@rustbot` modify labels: +T-compiler +T-libs +A-const-eval +A-const-fn

r? `@oli-obk`
2021-09-17 17:41:19 +02:00
..
benches
primitive_docs Add primitive documentation to libcore 2021-09-12 02:23:08 +00:00
src Rollup merge of #88954 - nbdd0121:panic3, r=oli-obk 2021-09-17 17:41:19 +02:00
tests Update aarch64 runtime feature detection tests 2021-08-03 12:07:56 +00:00
build.rs STD support for the ESP-IDF framework 2021-08-10 12:09:00 +03:00
Cargo.toml Update rustc-demangle to 0.1.21. 2021-08-24 19:53:20 +03:00