]> git.lizzy.rs Git - rust.git/commit
Auto merge of #86655 - jonas-schievink:const-arguments-as-str, r=kennytm
authorbors <bors@rust-lang.org>
Sun, 27 Jun 2021 15:45:29 +0000 (15:45 +0000)
committerbors <bors@rust-lang.org>
Sun, 27 Jun 2021 15:45:29 +0000 (15:45 +0000)
commit9cdb2d3d59bad2843330535a41d0ebbb831fe57e
tree9575d2912aefdbb1a2c65e686073a1528c5e9d05
parent49ba9361d87f5d58d54fdd164ef2128cd50ed4b4
parentb3fbfe474b40b5747161668d830e7589af71be92
Auto merge of #86655 - jonas-schievink:const-arguments-as-str, r=kennytm

Make `fmt::Arguments::as_str` unstably const

Motivation: mostly to move "panic!() in const contexts" forward, making use of `as_str` was mentioned in https://github.com/rust-lang/rust/issues/85194#issuecomment-852345377 and seems like the simplest way forward.