Unsize rules issues
Nobody has claimed this yet.
- Dominant language
- reStructuredText
- Stars
- 497
- Forks
- 41
- Avg merge
- 3h 52m
- Merged PRs (30d)
- 4
Description
This rule is not required. This code compiles even though i32: Unsize<u32> is not true.
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read src/types-and-traits.rst around lines 2002 and 2011-2020, then compare the referenced Rust playground and rust-lang/rust test unsize-coerce-multiple-adt-params.rs. Update the specification so the listed Unsize rules match these examples and remove the unreferenced X field. Done means all three noted inconsistencies are resolved in the specification.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- documentation
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100