Skip to content

Commit 8807c2d

Browse files
committed
Make let_underscore_drop Deny by default.
This is done so that we can check the noisiness of this lint in a Crater run. Note that when I built the compiler, I actually encountered lots of places where this lint will trigger and fail compilation, so I had to also set `RUSTFLAGS_NOT_BOOSTRAP` to `-A let_underscore_drop` when compiling to prevent that.
1 parent b040666 commit 8807c2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_lint/src/let_underscore.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ declare_lint! {
4646
/// calling `std::mem::drop` on the expression is clearer and helps convey
4747
/// intent.
4848
pub LET_UNDERSCORE_DROP,
49-
Allow,
49+
Deny,
5050
"non-binding let on a type that implements `Drop`"
5151
}
5252

0 commit comments

Comments
 (0)