rust/tests
bors 99d4ea4f39 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]
2023-02-16 12:58:43 +00:00
..
test_utils
ui Auto merge of #10356 - JirkaVebr:let_underscore_untyped, r=llogiq 2023-02-16 12:58:43 +00:00
ui-cargo
ui-internal Merge remote-tracking branch 'upstream/master' into rustup 2023-02-10 11:33:45 +01:00
ui-toml
workspace_test
check-fmt.rs
clippy.toml
compile-test.rs
dogfood.rs
integration.rs
lint_message_convention.rs
missing-test-files.rs
versioncheck.rs
workspace.rs