diff options
| author | Ben Blum <bblum@andrew.cmu.edu> | 2012-08-21 15:26:31 -0400 |
|---|---|---|
| committer | Ben Blum <bblum@andrew.cmu.edu> | 2012-08-21 15:30:53 -0400 |
| commit | 932f239a9c1671573b653d40f0de3a036fa4c55b (patch) | |
| tree | cc6c3deeabee13a7ca1763241b1f3e9a887c5f22 /src | |
| parent | f5332769d58c5e8d9fee36a7e1f8faa4f5c1b861 (diff) | |
respect distinct anonymous regions in unsafe::transmute_*
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcore/unsafe.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/unsafe.rs b/src/libcore/unsafe.rs index 0f6040ed6e0..0803c91c038 100644 --- a/src/libcore/unsafe.rs +++ b/src/libcore/unsafe.rs @@ -56,9 +56,9 @@ unsafe fn transmute<L, G>(-thing: L) -> G { } /// Coerce an immutable reference to be mutable. -unsafe fn transmute_mut<T>(+ptr: &T) -> &mut T { transmute(ptr) } +unsafe fn transmute_mut<T>(+ptr: &a/T) -> &a/mut T { transmute(ptr) } /// Coerce a mutable reference to be immutable. -unsafe fn transmute_immut<T>(+ptr: &mut T) -> &T { transmute(ptr) } +unsafe fn transmute_immut<T>(+ptr: &a/mut T) -> &a/T { transmute(ptr) } /// Coerce a borrowed pointer to have an arbitrary associated region. unsafe fn transmute_region<T>(+ptr: &a/T) -> &b/T { transmute(ptr) } /// Coerce a borrowed mutable pointer to have an arbitrary associated region. |
