auto merge of #13498 : johnsoft/rust/fix-transmute-fn-names, r=alexcrichton
Regions were renamed to lifetimes a while back, so these functions should probably be renamed as well.
This commit is contained in:
commit
b400a4d272
4 changed files with 15 additions and 15 deletions
|
|
@ -70,7 +70,7 @@ use std::cast;
|
|||
let mut x: u8 = 1;
|
||||
|
||||
let ref_1: &mut u8 = &mut x;
|
||||
let ref_2: &mut u8 = unsafe { cast::transmute_mut_region(ref_1) };
|
||||
let ref_2: &mut u8 = unsafe { cast::transmute_mut_lifetime(ref_1) };
|
||||
|
||||
// oops, ref_1 and ref_2 point to the same piece of data (x) and are
|
||||
// both usable
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue