diff options
| author | bors <bors@rust-lang.org> | 2023-02-16 12:58:43 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-02-16 12:58:43 +0000 |
| commit | 99d4ea4f399a81f09a04045ac3f0bce022d0f1ba (patch) | |
| tree | 259b32f7e4a788a587fd93f1f853a9848275da91 /tests/debuginfo/enum-thinlto.rs | |
| parent | 4369a67a9b5654c016329fa34e1281fc920c2f33 (diff) | |
| parent | 0b1ae20365f4363fdc5462fae3b3a3bd8ee214e6 (diff) | |
| download | rust-99d4ea4f399a81f09a04045ac3f0bce022d0f1ba.tar.gz rust-99d4ea4f399a81f09a04045ac3f0bce022d0f1ba.zip | |
Auto merge of #10356 - JirkaVebr:let_underscore_untyped, r=llogiq
Add `let_underscore_untyped` Fixes #6842 This adds a new pedantic `let_underscore_untyped` lint which checks for `let _ = <expr>`, and suggests to either provide a type annotation, or to remove the `let` keyword. That way the author is forced to specify the type they intended to ignore, and thus get forced to re-visit the decision should the type of `<expr>` change. Alternatively, they can drop the `let` keyword to truly just ignore the value no matter what. r? `@llogiq` changelog: New lint: [let_underscore_untyped]
Diffstat (limited to 'tests/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
