diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2025-02-22 18:29:12 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2025-02-22 18:30:14 +0000 |
| commit | a8f8b8de66025e254cbed08a53d5084162605d98 (patch) | |
| tree | 4c0155688ab4566c857386e1b3dddea6ceb8625b /tests/rustdoc-js/generics-trait.js | |
| parent | dc37ff82e861428d537ae28e7b92296c4583fb5a (diff) | |
| download | rust-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/generics-trait.js')
0 files changed, 0 insertions, 0 deletions
