-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
impl AsRef<[T; N]>
and AsMut<[T; N]>
for [T; N]
#129872
base: master
Are you sure you want to change the base?
Conversation
All reactions
-
👍 1 reaction -
👎 1 reaction
The job Click to see the possible cause of the failure (guessed by this bot)
|
All reactions
Sorry, something went wrong.
I am not on T-libs-api, but I don't believe this implementation carries its weight, for the record. Also, it's almost certainly too late to introduce anything new to edition 2024, especially with such weak justification as a single issue report on the tracker. |
All reactions
-
👍 1 reaction
Sorry, something went wrong.
Well, fair enough. I've overestimated this a bit.
From what I can tell, there is an intent to eventually add a blanket But anyways, there seems to be no sense in rushing to get this in 2024 edition and there is quite a bit of time before the next (2027?) one, so I guess I will go through the proper ACP process first, even though it will take quite a while. Thank you for the cool-headed perspective and quick feedback on this! ❤️ |
All reactions
Sorry, something went wrong.
Successfully merging this pull request may close these issues.
Missing AsMut<[T;N]> for [T;N]
Fixes #129849.
Apparently
.as_ref()
is widely used on arrays to mean.as_slice()
, so some Edition sorcery similar to #84147 or #124097 is required.TODO
#[rustc_skip_during_method_dispatch(..)]
.as_slice()
)