rust/library
bors 6e0a8bf790 Auto merge of #86998 - m-ou-se:const-panic-fmt-as-str, r=oli-obk
Make const panic!("..") work in Rust 2021.

During const eval, this replaces calls to core::panicking::panic_fmt and std::panicking::being_panic_fmt with a call to a new const fn: core::panicking::const_panic_fmt. That function uses fmt::Arguments::as_str() to get the str and calls panic_str with that instead.

panic!() invocations with formatting arguments are still not accepted, as the creation of such a fmt::Arguments cannot be done in constant functions right now.

r? `@RalfJung`
2021-07-29 07:12:07 +00:00
..
alloc Auto merge of #85874 - steffahn:fix_unsound_zip_optimization, r=yaahc 2021-07-29 00:31:07 +00:00
backtrace@221483ebaf
core Auto merge of #86998 - m-ou-se:const-panic-fmt-as-str, r=oli-obk 2021-07-29 07:12:07 +00:00
panic_abort
panic_unwind
proc_macro
profiler_builtins Upgrade cc crate to 1.0.69 2021-07-13 17:58:50 +09:00
rtstartup
rustc-std-workspace-alloc
rustc-std-workspace-core
rustc-std-workspace-std
std Auto merge of #86998 - m-ou-se:const-panic-fmt-as-str, r=oli-obk 2021-07-29 07:12:07 +00:00
stdarch@3001c75a1d
test Remove unused stuff and switch to pub(crate) whenever possible. 2021-07-18 22:00:41 +08:00
unwind Upgrade cc crate to 1.0.69 2021-07-13 17:58:50 +09:00