]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #94657 - fee1-dead:const_slice_index, r=oli-obk
authorMatthias Krüger <matthias.krueger@famsik.de>
Thu, 10 Mar 2022 11:20:52 +0000 (12:20 +0100)
committerGitHub <noreply@github.com>
Thu, 10 Mar 2022 11:20:52 +0000 (12:20 +0100)
Constify `Index{,Mut}` for `[T]`, `str`, and `[T; N]`

Several panic functions were rewired (via `const_eval_select`) to simpler implementations that do not require formatting for compile-time usage.

r? ```@oli-obk```

1  2 
library/core/src/lib.rs
library/core/src/ptr/non_null.rs
library/core/src/slice/mod.rs

Simple merge
Simple merge
Simple merge