-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Missing AsMut<[T;N]> for [T;N] #129849
Comments
I expected there to be a blanket impl, but
https://doc.rust-lang.org/stable/core/convert/trait.AsMut.html#reflexivity Sad. Anyways, you can try to submit a PR if you want, or, alternatively:
But I think I'll try to submit a PR anyways, unless you want to do it yourself. |
Since I haven't done a PR (or even compiled the compiler) I'd appreciate you submitting the PR - but I can give it a try. I use a generic slice since it's used as a buffer of exactly that size. |
Oh wow, this is worse than I thought. Many places (even in compiler itself) use @rustbot claim |
I tried this code:
I expected it to compile.
Instead, this happened:
The text was updated successfully, but these errors were encountered: