From 7dab9037257f9ccdce58d5e7c8ecfc7932355b09 Mon Sep 17 00:00:00 2001 From: Falco Hirschenberger Date: Tue, 11 Nov 2014 10:41:53 +0100 Subject: [PATCH] Set exceeding bitshifts lint to deny Discussed in #18587 --- src/librustc/lint/builtin.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/lint/builtin.rs b/src/librustc/lint/builtin.rs index 6f1287014d776..56e639387f807 100644 --- a/src/librustc/lint/builtin.rs +++ b/src/librustc/lint/builtin.rs @@ -116,7 +116,7 @@ declare_lint!(UNUSED_COMPARISONS, Warn, 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 {