rust-lang/rust — pull request #18206 by hirschenberger (2014-10-21 09:48:18+00:00)
Title: Add lint for checking exceeding bitshifts #17713

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