2beabbbf6f
It makes it sound like the `ExprKind` and `Rvalue` are supposed to represent all pointer related casts, when in reality their just used to share a some enum variants. Make it clear there these are only coercion to make it clear why only some pointer related "casts" are in the enum.
16 lines
352 B
Rust
16 lines
352 B
Rust
// MIR for `roundtrip` after PreCodegen
|
|
|
|
fn roundtrip(_1: *const u8) -> *const u8 {
|
|
debug x => _1;
|
|
let mut _0: *const u8;
|
|
let mut _2: *mut u8;
|
|
|
|
bb0: {
|
|
StorageLive(_2);
|
|
_2 = _1 as *mut u8 (PtrToPtr);
|
|
_0 = move _2 as *const u8 (PointerCoercion(MutToConstPointer));
|
|
StorageDead(_2);
|
|
return;
|
|
}
|
|
}
|