Skip to content

Commit 1c8dc56

Browse files
committed
---
yaml --- r: 212987 b: refs/heads/master c: 153de4c h: refs/heads/master i: 212985: 4edcef5 212983: 4ee2bae v: v3
1 parent addb4c8 commit 1c8dc56

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 669d1cd9e28aa6a6aa181c29b9d68edd33491f6f
2+
refs/heads/master: 153de4c5d9e7846a029f9c79fb9940f72f5961f9
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
55
refs/heads/try: 1864973ae17213c5a58c4dd3f9af6d1b6c7d2e05

trunk/src/libcore/mem.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,10 @@ pub unsafe fn transmute_copy<T, U>(src: &T) -> U {
462462
#[unstable(feature = "copy_lifetime",
463463
reason = "this function may be removed in the future due to its \
464464
questionable utility")]
465+
#[deprecated(since = "1.2.0",
466+
reason = "unclear that this function buys more safety and \
467+
lifetimes are generally not handled as such in unsafe \
468+
code today")]
465469
pub unsafe fn copy_lifetime<'a, S: ?Sized, T: ?Sized + 'a>(_ptr: &'a S,
466470
ptr: &T) -> &'a T {
467471
transmute(ptr)
@@ -472,6 +476,10 @@ pub unsafe fn copy_lifetime<'a, S: ?Sized, T: ?Sized + 'a>(_ptr: &'a S,
472476
#[unstable(feature = "copy_lifetime",
473477
reason = "this function may be removed in the future due to its \
474478
questionable utility")]
479+
#[deprecated(since = "1.2.0",
480+
reason = "unclear that this function buys more safety and \
481+
lifetimes are generally not handled as such in unsafe \
482+
code today")]
475483
pub unsafe fn copy_mut_lifetime<'a, S: ?Sized, T: ?Sized + 'a>(_ptr: &'a S,
476484
ptr: &mut T)
477485
-> &'a mut T

0 commit comments

Comments
 (0)