rust/tests/ui/parser/macro
Jacob Pratt da493c91d6
Rollup merge of #137435 - estebank:match-arm-2, r=compiler-errors
Fix "missing match arm body" suggestion involving `!`

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!() },
   |                          ++++++++++++++
```

r? `@compiler-errors`
2025-02-23 02:44:19 -05:00
..
bad-macro-argument.rs
bad-macro-argument.stderr
issue-33569.rs
issue-33569.stderr
issue-37113.rs Remove NtTy. 2025-02-21 15:49:46 +11:00
issue-37113.stderr Remove NtTy. 2025-02-21 15:49:46 +11:00
issue-37234.rs
issue-37234.stderr
literals-are-validated-before-expansion.rs
literals-are-validated-before-expansion.stderr
macro-doc-comments-1.rs
macro-doc-comments-1.stderr
macro-doc-comments-2.rs
macro-doc-comments-2.stderr
macro-expand-to-field.rs
macro-expand-to-field.stderr
macro-expand-to-match-arm.rs
macro-expand-to-match-arm.stderr Fix "missing match arm body" suggestion involving ! 2025-02-22 18:30:14 +00:00
macro-incomplete-parse.rs
macro-incomplete-parse.stderr
macro-repeat.rs
macro-repeat.stderr
mbe-bare-trait-object-maybe-trait-bound.rs
mbe-dotdotdot-may-not-begin-a-type.rs
pub-item-macro.rs
pub-item-macro.stderr
statement-boundaries.rs
trait-non-item-macros.rs
trait-non-item-macros.stderr
trait-object-macro-matcher.rs Remove NtTy. 2025-02-21 15:49:46 +11:00
trait-object-macro-matcher.stderr Remove NtTy. 2025-02-21 15:49:46 +11:00