Skip to content

Commit 8861423

Browse files
committed
---
yaml --- r: 227599 b: refs/heads/try c: 153de4c h: refs/heads/master i: 227597: f2b137a 227595: cc2d741 227591: 46e6538 227583: dd48252 v: v3
1 parent bfdfcfb commit 8861423

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,7 +1,7 @@
11
---
22
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: 669d1cd9e28aa6a6aa181c29b9d68edd33491f6f
4+
refs/heads/try: 153de4c5d9e7846a029f9c79fb9940f72f5961f9
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/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)