rust/compiler/rustc_span
Mara Bos f827d3e285 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.
2021-07-28 16:10:41 +02:00
..
src Make const panic!("..") work in Rust 2021. 2021-07-28 16:10:41 +02:00
Cargo.toml rustc_span: Explicitly handle crates that differ from package names 2021-06-24 23:48:53 -07:00