-
Notifications
You must be signed in to change notification settings - Fork 13.7k
const
ify (the unstable) str::as_str
#145930
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
Conversation
r? @ibraheemdev rustbot has assigned @ibraheemdev. Use |
Confused how this could have possibly passed CI without a |
I think they got reworked a few months ago to inherit stability and feature name from the non-const attributes. |
Right! Sorry, I was forgetting that this method is still unstable. Carry on, then. |
@bors r+ rollup |
Rollup of 9 pull requests Successful merges: - #142727 (wasm: rm static mut) - #143193 (Port `#[link]` to the new attribute parsing infrastructure ) - #144864 (No source fixes) - #145913 (Add spin_loop hint for LoongArch) - #145926 (compiletest: Remove several remnants of the old libtest-based executor) - #145928 (Rename `Location::file_with_nul` to `file_as_c_str`) - #145930 (`const`ify (the unstable) `str::as_str`) - #145941 (Disable `integer_to_ptr_transmutes` suggestion for unsized types) - #145953 (Update `icu_list` to 2.0) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #145930 - GrigorenkoPV:const_str_as_str, r=joshtriplett `const`ify (the unstable) `str::as_str` Tracking issue: #130366 The method was not initially marked `const` presumably because it is only useful with `Deref`. But now that const traits seem to be a thing that can actually become real, why not make it `const`? PR `const`ifying `Deref`: #145279
Tracking issue: #130366
The method was not initially marked
const
presumably because it is only useful withDeref
. But now that const traits seem to be a thing that can actually become real, why not make itconst
?PR
const
ifyingDeref
: #145279