Commit f9b0c77
committed
Add
On lang, we recently decided (in rust-lang/rust#147382) that
`Result<(), E>` and `ControlFlow<B, ()>` should not trigger the
`unused_must_use` lint when the error or break type is uninhabited.
The rationale is that an infallible result carries nothing the
caller needs to handle. Let's document this.must_use exception for infallible results1 parent 0775ef3 commit f9b0c77
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
398 | 411 | | |
399 | 412 | | |
400 | 413 | | |
| |||
757 | 770 | | |
758 | 771 | | |
759 | 772 | | |
| 773 | + | |
760 | 774 | | |
0 commit comments