-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Allow coercions from statically sized to dynamically sized arrays #13716
Comments
This only allows them at the type checking stage. We still require implementation in trans. Also needs tests. Part of rust-lang#13716.
I wanted to clarify something about the plan with DST. Currently, we allow a third variant of the above: fn use_slice(s: &[u8]) {}
fn main() {
let s: [u8, ..3] = [0,1,2];
use_slice(s);
} In other words, we coerce from My question is: as part of the DST coercion work, are you planning to remove this coercion? Alternatively, I wonder if it might make sense to replace this coercion with |
I believe we should not coerce from |
This work has landed now. re the |
This is in honor of `@bors` who is no longer used in this repo. I've been saving this poem for a special PR, but it just seems fitting to use it now: Bors the bot, Handsome and strong! Will you go with me, To prom? --- ### The cat of this release is Abu nominated by @jdonszelmann : <img height=700 src="https://github.com/user-attachments/assets/414f24a1-8bbf-4fed-bcbc-acc5ca6a1353" alt="The cats of this Clippy release" /> Cats for the next release can be nominated in the comments :D --- changelog: none
The following should be valid:
The text was updated successfully, but these errors were encountered: