Skip to content

Commit 3c23727

Browse files
committed
---
yaml --- r: 219357 b: refs/heads/snap-stage3 c: 153de4c h: refs/heads/master i: 219355: ff31465 v: v3
1 parent c1794f6 commit 3c23727

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,6 +1,6 @@
11
---
22
refs/heads/master: c044791d80ea0dc5c4b57b6030a67b69f8510239
3-
refs/heads/snap-stage3: 669d1cd9e28aa6a6aa181c29b9d68edd33491f6f
3+
refs/heads/snap-stage3: 153de4c5d9e7846a029f9c79fb9940f72f5961f9
44
refs/heads/try: b53c0f93eedcdedd4fd89bccc5a3a09d1c5cd23e
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/snap-stage3/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)