Skip to content

Unsize rules issues #457

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

Open
compiler-errors opened this issue Nov 1, 2023 · 0 comments
Open

Unsize rules issues #457

compiler-errors opened this issue Nov 1, 2023 · 0 comments

Comments

@compiler-errors
Copy link
Member

https://github.com/ferrocene/specification/blob/496ef38bcfe074d88580021b5b3fadc0239c85b2/src/types-and-traits.rst?plain=1#L2011-L2012

This rule is not required. This code compiles even though i32: Unsize<u32> is not true.

https://github.com/ferrocene/specification/blob/496ef38bcfe074d88580021b5b3fadc0239c85b2/src/types-and-traits.rst?plain=1#L2017-L2020

This rule should be generalized to allow multiple parameters to be changed. See the example committed in rust-lang/rust#117495 (tests/ui/unsized/unsize-coerce-multiple-adt-params.rs).

Also, this X field isn't referenced later in the document.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant