Skip to content

Commit 7dab903

Browse files
Set exceeding bitshifts lint to deny
Discussed in rust-lang#18587
1 parent d962fb0 commit 7dab903

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/lint/builtin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ declare_lint!(UNUSED_COMPARISONS, Warn,
116116
declare_lint!(OVERFLOWING_LITERALS, Warn,
117117
"literal out of range for its type")
118118

119-
declare_lint!(EXCEEDING_BITSHIFTS, Allow,
119+
declare_lint!(EXCEEDING_BITSHIFTS, Deny,
120120
"shift exceeds the type's number of bits")
121121

122122
pub struct TypeLimits {

0 commit comments

Comments
 (0)