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 Move/rename lazy::Sync{OnceCell,Lazy} to sync::{Once,Lazy}Lock 2022-06-16 19:54:42 +04:00
ui Auto merge of #10356 - JirkaVebr:let_underscore_untyped, r=llogiq 2023-02-16 12:58:43 +00:00
ui-cargo Merge commit 'f4850f7292' into clippyup 2022-11-21 20:51:52 +01:00
ui-internal Merge remote-tracking branch 'upstream/master' into rustup 2023-02-10 11:33:45 +01:00
ui-toml Merge commit '7f27e2e74e' into clippyup 2023-01-12 19:48:13 +01:00
workspace_test
check-fmt.rs Merge commit 'f51aade56f' into clippyup 2022-08-31 09:24:45 -04:00
clippy.toml
compile-test.rs Merge commit '4f142aa105' into clippyup 2022-10-23 15:18:45 +02:00
dogfood.rs Merge commit '4f142aa105' into clippyup 2022-10-23 15:18:45 +02:00
integration.rs Merge commit '7f27e2e74e' into clippyup 2023-01-12 19:48:13 +01:00
lint_message_convention.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
missing-test-files.rs Merge commit 'ac0e10aa68' into clippyup 2022-10-06 09:44:38 +02:00
versioncheck.rs Merge commit '4bdfb0741d' into clippyup 2022-12-17 14:12:54 +01:00
workspace.rs Merge commit 'f51aade56f' into clippyup 2022-08-31 09:24:45 -04:00