about summary refs log tree commit diff
path: root/src/test/ui/pattern/pat-tuple-underfield.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-67/+0
2021-08-25Adjust spansNoah Lev-0/+12
* Highlight the whole pattern if it has no fields * Highlight the whole definition if it has no fields * Only highlight the pattern name if the pattern is multi-line * Determine whether a pattern is multi-line based on distance from name to last field, rather than first field
2021-01-12Include `..` suggestion if fields are all wildcardsCamelid-0/+2
2021-01-12Add a test case with lots of whitespaceCamelid-0/+8
2021-01-12Only suggest `..` if more than one field is missingCamelid-4/+0
2021-01-12Specialize `..` help message for all fields vs. the restCamelid-6/+6
2021-01-12Suggest `_` and `..` if a pattern has too few fieldsCamelid-0/+49
For example, this code: struct S(i32, f32); let S(x) = S(0, 1.0); will make the compiler suggest either: let S(x, _) = S(0, 1.0); or: let S(x, ..) = S(0, 1.0);