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:
bors 2014-04-15 19:21:57 -07:00
commit b400a4d272
4 changed files with 15 additions and 15 deletions

View file

@ -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