File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 36
36
///
37
37
/// [`Unpin`]: core::marker::Unpin
38
38
/// [`drop`]: Drop::drop
39
+ #[ deprecated(
40
+ since = "0.1.1" ,
41
+ note = "this macro is not safe; use pin-project or pin-project-lite crate instead"
42
+ ) ]
39
43
#[ macro_export]
40
44
macro_rules! unsafe_pinned {
41
45
( $f: tt: $t: ty) => {
@@ -81,6 +85,10 @@ macro_rules! unsafe_pinned {
81
85
/// avoid consuming the [`Pin`].
82
86
///
83
87
/// [`Pin`]: core::pin::Pin
88
+ #[ deprecated(
89
+ since = "0.1.1" ,
90
+ note = "this macro is not safe; use pin-project or pin-project-lite crate instead"
91
+ ) ]
84
92
#[ macro_export]
85
93
macro_rules! unsafe_unpinned {
86
94
( $f: tt: $t: ty) => {
Original file line number Diff line number Diff line change
1
+ #![ allow( deprecated) ]
2
+
1
3
use pin_utils:: { pin_mut, unsafe_pinned, unsafe_unpinned} ;
2
4
use std:: marker:: Unpin ;
3
5
use std:: pin:: Pin ;
You can’t perform that action at this time.
0 commit comments