This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
rust
/
src
/
test
/
mir-opt
/
const_prop
/
cast.rs
8 lines
104 B
Rust
Raw
Normal View
History
Unescape
Escape
Enable `--bless`ing of MIR dumps
2020-03-11 11:49:00 +01:00
// EMIT_MIR rustc.main.ConstProp.diff
Lint overflowing integer casts in const prop This extends the invalid cases we catch in const prop to include overflowing integer casts using the same machinery as the overflowing binary and unary operation logic.
2019-12-12 22:03:32 -05:00
fn
main
(
)
{
let
x
=
42
u8
as
u32
;
let
y
=
42
u32
as
u8
;
}
Reference in New Issue
Copy Permalink