@@ -72,7 +72,7 @@ use core::task::{Context, Poll};
72
72
///
73
73
///
74
74
/// [`Sync`]: core::marker::Sync
75
- #[ unstable( feature = "exclusive_wrapper" , issue = "none " ) ]
75
+ #[ unstable( feature = "exclusive_wrapper" , issue = "98407 " ) ]
76
76
#[ doc( alias = "SyncWrapper" ) ]
77
77
#[ doc( alias = "SyncCell" ) ]
78
78
#[ doc( alias = "Unique" ) ]
@@ -86,10 +86,10 @@ pub struct Exclusive<T: ?Sized> {
86
86
}
87
87
88
88
// See `Exclusive`'s docs for justification.
89
- #[ unstable( feature = "exclusive_wrapper" , issue = "none " ) ]
89
+ #[ unstable( feature = "exclusive_wrapper" , issue = "98407 " ) ]
90
90
unsafe impl < T : ?Sized > Sync for Exclusive < T > { }
91
91
92
- #[ unstable( feature = "exclusive_wrapper" , issue = "none " ) ]
92
+ #[ unstable( feature = "exclusive_wrapper" , issue = "98407 " ) ]
93
93
impl < T : ?Sized > fmt:: Debug for Exclusive < T > {
94
94
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> Result < ( ) , fmt:: Error > {
95
95
f. debug_struct ( "Exclusive" ) . finish_non_exhaustive ( )
@@ -98,14 +98,14 @@ impl<T: ?Sized> fmt::Debug for Exclusive<T> {
98
98
99
99
impl < T : Sized > Exclusive < T > {
100
100
/// Wrap a value in an `Exclusive`
101
- #[ unstable( feature = "exclusive_wrapper" , issue = "none " ) ]
101
+ #[ unstable( feature = "exclusive_wrapper" , issue = "98407 " ) ]
102
102
#[ must_use]
103
103
pub const fn new ( t : T ) -> Self {
104
104
Self { inner : t }
105
105
}
106
106
107
107
/// Unwrap the value contained in the `Exclusive`
108
- #[ unstable( feature = "exclusive_wrapper" , issue = "none " ) ]
108
+ #[ unstable( feature = "exclusive_wrapper" , issue = "98407 " ) ]
109
109
#[ must_use]
110
110
pub const fn into_inner ( self ) -> T {
111
111
self . inner
@@ -114,7 +114,7 @@ impl<T: Sized> Exclusive<T> {
114
114
115
115
impl < T : ?Sized > Exclusive < T > {
116
116
/// Get exclusive access to the underlying value.
117
- #[ unstable( feature = "exclusive_wrapper" , issue = "none " ) ]
117
+ #[ unstable( feature = "exclusive_wrapper" , issue = "98407 " ) ]
118
118
#[ must_use]
119
119
pub const fn get_mut ( & mut self ) -> & mut T {
120
120
& mut self . inner
@@ -126,7 +126,7 @@ impl<T: ?Sized> Exclusive<T> {
126
126
/// value, which means _unpinned_ `Exclusive`s can produce _unpinned_
127
127
/// access to the underlying value, but _pinned_ `Exclusive`s only
128
128
/// produce _pinned_ access to the underlying value.
129
- #[ unstable( feature = "exclusive_wrapper" , issue = "none " ) ]
129
+ #[ unstable( feature = "exclusive_wrapper" , issue = "98407 " ) ]
130
130
#[ must_use]
131
131
pub const fn get_pin_mut ( self : Pin < & mut Self > ) -> Pin < & mut T > {
132
132
// SAFETY: `Exclusive` can only produce `&mut T` if itself is unpinned
@@ -137,7 +137,7 @@ impl<T: ?Sized> Exclusive<T> {
137
137
/// Build a _mutable_ references to an `Exclusive<T>` from
138
138
/// a _mutable_ reference to a `T`. This allows you to skip
139
139
/// building an `Exclusive` with [`Exclusive::new`].
140
- #[ unstable( feature = "exclusive_wrapper" , issue = "none " ) ]
140
+ #[ unstable( feature = "exclusive_wrapper" , issue = "98407 " ) ]
141
141
#[ must_use]
142
142
pub const fn from_mut ( r : & ' _ mut T ) -> & ' _ mut Exclusive < T > {
143
143
// SAFETY: repr is ≥ C, so refs have the same layout; and `Exclusive` properties are `&mut`-agnostic
@@ -147,7 +147,7 @@ impl<T: ?Sized> Exclusive<T> {
147
147
/// Build a _pinned mutable_ references to an `Exclusive<T>` from
148
148
/// a _pinned mutable_ reference to a `T`. This allows you to skip
149
149
/// building an `Exclusive` with [`Exclusive::new`].
150
- #[ unstable( feature = "exclusive_wrapper" , issue = "none " ) ]
150
+ #[ unstable( feature = "exclusive_wrapper" , issue = "98407 " ) ]
151
151
#[ must_use]
152
152
pub const fn from_pin_mut ( r : Pin < & ' _ mut T > ) -> Pin < & ' _ mut Exclusive < T > > {
153
153
// SAFETY: `Exclusive` can only produce `&mut T` if itself is unpinned
@@ -156,14 +156,14 @@ impl<T: ?Sized> Exclusive<T> {
156
156
}
157
157
}
158
158
159
- #[ unstable( feature = "exclusive_wrapper" , issue = "none " ) ]
159
+ #[ unstable( feature = "exclusive_wrapper" , issue = "98407 " ) ]
160
160
impl < T > From < T > for Exclusive < T > {
161
161
fn from ( t : T ) -> Self {
162
162
Self :: new ( t)
163
163
}
164
164
}
165
165
166
- #[ unstable( feature = "exclusive_wrapper" , issue = "none " ) ]
166
+ #[ unstable( feature = "exclusive_wrapper" , issue = "98407 " ) ]
167
167
impl < T : Future + ?Sized > Future for Exclusive < T > {
168
168
type Output = T :: Output ;
169
169
0 commit comments