]> git.lizzy.rs Git - rust.git/commit
auto merge of #18206 : hirschenberger/rust/issue-17713, r=thestinger
authorbors <bors@rust-lang.org>
Mon, 3 Nov 2014 07:37:23 +0000 (07:37 +0000)
committerbors <bors@rust-lang.org>
Mon, 3 Nov 2014 07:37:23 +0000 (07:37 +0000)
commit851799d09e48e06f3fd0c4c6f694af51fc655f9a
tree4b42d68a654dba8bf6b06e1c1a195e95e8a3059c
parentff50f24feb512075f3fcf9fc2801e4c853ff9316
parente5058a8f0c8b9ad6dbfe53fb8b84e636db501ae2
auto merge of #18206 : hirschenberger/rust/issue-17713, r=thestinger

Add lint for checking exceeding bitshifts #17713

It also const-evaluates the shift width (RHS) to check more complex shifts like `1u8 << (4+5)`.
The lint-level is set to `Warn` but perhaps it must be `Deny` as in llvm exceeding bitshifts are undefined as @ben0x539 stated in #17713