mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
64cce5fc7d
Updates `interpret`, `codegen_ssa`, and `codegen_cranelift` to consume the new cast instead of the intrinsic. Includes `CastTransmute` for custom MIR building, to be able to test the extra UB.
16 lines
543 B
Diff
16 lines
543 B
Diff
- // MIR for `valid_char` before ConstProp
|
|
+ // MIR for `valid_char` after ConstProp
|
|
|
|
fn valid_char() -> char {
|
|
let mut _0: char; // return place in scope 0 at $DIR/transmute.rs:+0:24: +0:28
|
|
scope 1 {
|
|
}
|
|
|
|
bb0: {
|
|
- _0 = const 82_u32 as char (Transmute); // scope 1 at $DIR/transmute.rs:+1:14: +1:33
|
|
+ _0 = const 'R'; // scope 1 at $DIR/transmute.rs:+1:14: +1:33
|
|
return; // scope 0 at $DIR/transmute.rs:+2:2: +2:2
|
|
}
|
|
}
|
|
|