about summary refs log tree commit diff
path: root/tests/rustdoc-js
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2025-02-22 18:29:12 +0000
committerEsteban Küber <esteban@kuber.com.ar>2025-02-22 18:30:14 +0000
commita8f8b8de66025e254cbed08a53d5084162605d98 (patch)
tree4c0155688ab4566c857386e1b3dddea6ceb8625b /tests/rustdoc-js
parentdc37ff82e861428d537ae28e7b92296c4583fb5a (diff)
downloadrust-a8f8b8de66025e254cbed08a53d5084162605d98.tar.gz
rust-a8f8b8de66025e254cbed08a53d5084162605d98.zip
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!() },
   |                          ++++++++++++++
```
Diffstat (limited to 'tests/rustdoc-js')
0 files changed, 0 insertions, 0 deletions