Skip to content
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

Unsize rules issues #457

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

* :dp:`fls_7aw3ifbvfgbd`
``T`` implements ``core::marker::Unsize<U>``,

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

* :dp:`fls_4wbk7pqj010i`
The :t:`type` of ``last_field`` involves ``T`` and if the :t:`type` of
``last_field`` is ``W<T>``, then ``W<T>`` implements
``core::marker::Unsize<W<U>>``,

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