1
Fork 0

Don't allow new const panic through format flattening.

panic!("a {}", "b") is still not allowed in const,
even if the hir flattens to panic!("a b").
This commit is contained in:
Mara Bos 2023-02-01 17:39:14 +01:00
parent 96d252160e
commit f2f6bcc499
7 changed files with 66 additions and 17 deletions

View file

@ -984,6 +984,7 @@ symbols! {
never_type_fallback,
new,
new_binary,
new_const,
new_debug,
new_display,
new_lower_exp,