]> git.lizzy.rs Git - rust.git/commitdiff
Set exceeding bitshifts lint to deny
authorFalco Hirschenberger <falco.hirschenberger@gmail.com>
Tue, 11 Nov 2014 09:41:53 +0000 (10:41 +0100)
committerFalco Hirschenberger <falco.hirschenberger@gmail.com>
Tue, 11 Nov 2014 09:41:53 +0000 (10:41 +0100)
Discussed in #18587

src/librustc/lint/builtin.rs

index 6f1287014d7760b73d1428e5644b31c0d66419a9..56e639387f8073d6b3b85e19dc5620a6bdced9ec 100644 (file)
@@ -116,7 +116,7 @@ fn check_expr(&mut self, cx: &Context, e: &ast::Expr) {
 declare_lint!(OVERFLOWING_LITERALS, Warn,
               "literal out of range for its type")
 
-declare_lint!(EXCEEDING_BITSHIFTS, Allow,
+declare_lint!(EXCEEDING_BITSHIFTS, Deny,
               "shift exceeds the type's number of bits")
 
 pub struct TypeLimits {