about summary refs log tree commit diff
path: root/tests/ui/feature-gates/feature-gate-never_patterns.stderr
AgeCommit message (Collapse)AuthorLines
2025-10-02bring back plural 'alternatives' in suggestion messageKarol Zwolak-1/+1
2025-10-01bless testsKarol Zwolak-1/+1
2025-02-22Fix "missing match arm body" suggestion involving `!`Esteban Küber-5/+30
Include the match arm guard in the gated span, so that the suggestion to add a body is correct instead of inserting the body before the guard. Make the suggestion verbose. ``` error: `match` arm with no body --> $DIR/feature-gate-never_patterns.rs:43:9 | LL | Some(_) if false, | ^^^^^^^^^^^^^^^^ | help: add a body after the pattern | LL | Some(_) if false => { todo!() }, | ++++++++++++++ ```
2025-02-10Show diff suggestion format on verbose replacementEsteban Küber-1/+2
``` error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields --> $DIR/attempted-access-non-fatal.rs:7:15 | LL | let _ = 2.l; | ^ | help: if intended to be a floating point literal, consider adding a `0` after the period and a `f64` suffix | LL - let _ = 2.l; LL + let _ = 2.0f64; | ```
2024-01-15Auto merge of #119610 - Nadrieril:never_pattern_bindings, r=compiler-errorsbors-23/+14
never patterns: Check bindings wrt never patterns Never patterns: - Shouldn't contain bindings since they never match anything; - Don't count when checking that or-patterns have consistent bindings. r? `@compiler-errors`
2024-01-13Bless testsGeorge-lewis-0/+6
Update tests
2024-01-09Check bindings around never patternsNadrieril-23/+14
2023-12-12Don't gate the feature twiceNadrieril-44/+12
2023-12-12Correctly gate the parsing of match arms without bodyNadrieril-2/+112
2023-12-03Disallow arm bodies on never patternsNadrieril-1/+1
2023-11-29Add `never_patterns` feature gateNadrieril-0/+39