Skip to content

Commit 90c7c15

Browse files
committed
---
yaml --- r: 225937 b: refs/heads/stable c: 153de4c h: refs/heads/master i: 225935: fe80f32 v: v3
1 parent 1432e8c commit 90c7c15

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
@@ -29,6 +29,6 @@ refs/heads/tmp: e5d90d98402475b6e154ce216f9efcb80da1a747
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: 1fe32ca12c51afcd761d9962f51a74ff0d07a591
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 669d1cd9e28aa6a6aa181c29b9d68edd33491f6f
32+
refs/heads/stable: 153de4c5d9e7846a029f9c79fb9940f72f5961f9
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b

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