about summary refs log tree commit diff
path: root/src/test/ui/destructuring-assignment/tuple_struct_destructure_fail.stderr
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-98/+0
2021-12-14Stabilize `destructuring_assignment`Jacob Pratt-9/+9
2021-08-25Adjust spansNoah Lev-4/+4
* 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-08-21Make E0023 spans even more preciseNoah Lev-20/+12
2021-08-17Make spans for tuple patterns in E0023 more preciseNoah Lev-8/+16
As suggested in #86307.
2021-08-11Modify structured suggestion outputEsteban Küber-4/+4
* On suggestions that include deletions, use a diff inspired output format * When suggesting addition, use `+` as underline * Color highlight modified span
2021-01-12Include `..` suggestion if fields are all wildcardsCamelid-0/+8
2021-01-12Always show suggestions in their own subwindowsCamelid-8/+12
2021-01-12Only suggest `..` if more than one field is missingCamelid-20/+8
2021-01-12Specialize `..` help message for all fields vs. the restCamelid-2/+2
2021-01-12Suggest `Variant(..)` if all of the mentioned fields are `_`Camelid-4/+4
2021-01-12Suggest `_` and `..` if a pattern has too few fieldsCamelid-0/+18
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);
2020-11-14Add underscore expressions for destructuring assignmentsFabian Zaiser-5/+23
Co-authored-by: varkor <github@varkor.com>
2020-11-11Implement destructuring assignment for structs and slicesFabian Zaiser-0/+62
Co-authored-by: varkor <github@varkor.com>