-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Constify Index{,Mut}
for [T]
, str
, and [T; N]
#94657
Conversation
5247cdb
to
c6f987b
Compare
This comment has been minimized.
This comment has been minimized.
c6f987b
to
4654a91
Compare
Hold up 😄 I got like 5 PRs in my review queue that are blocked on the nebulous "unclear if libs and lang are happy with our extensive testing here". I really want to progress, so maybe you and I should come up with a less technical doc and a more "here's what users want to do and how they can do it now and how they can do it with 🌈🦄-const-eval" |
ok, went through the queue and this PR. Since it does not add new bounds, there are no rustdoc or diagnostics visible changes. The @bors r+ |
📌 Commit 4654a91 has been approved by |
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``
…askrgr Rollup of 5 pull requests Successful merges: - rust-lang#92150 (Improve suggestion when casting usize to (possibly) wide pointer) - rust-lang#94635 (Merge `#[deprecated]` and `#[rustc_deprecated]`) - rust-lang#94657 (Constify `Index{,Mut}` for `[T]`, `str`, and `[T; N]`) - rust-lang#94746 (diagnostics: use rustc_on_unimplemented to recommend `[].iter()`) - rust-lang#94788 (Account for suggestions for complete removal of lines) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This feature, which covers the `const fn` version of `<[T]>:: get[_unchecked][_mut]`, was added by [rust-lang/rust#94657][1]. [1]: rust-lang/rust#94657
Several panic functions were rewired (via
const_eval_select
) to simpler implementations that do not require formatting for compile-time usage.r? @oli-obk