File tree 7 files changed +62
-15
lines changed
7 files changed +62
-15
lines changed Original file line number Diff line number Diff line change @@ -179,9 +179,9 @@ pub struct Rc<T> {
179
179
_noshare : marker:: NoSync
180
180
}
181
181
182
- #[ stable]
183
182
impl < T > Rc < T > {
184
183
/// Constructs a new reference-counted pointer.
184
+ #[ stable]
185
185
pub fn new ( value : T ) -> Rc < T > {
186
186
unsafe {
187
187
Rc {
@@ -200,9 +200,7 @@ impl<T> Rc<T> {
200
200
}
201
201
}
202
202
}
203
- }
204
203
205
- impl < T > Rc < T > {
206
204
/// Downgrades the reference-counted pointer to a weak reference.
207
205
#[ experimental = "Weak pointers may not belong in this module" ]
208
206
pub fn downgrade ( & self ) -> Weak < T > {
Original file line number Diff line number Diff line change @@ -645,7 +645,6 @@ impl<T> Vec<T> {
645
645
/// assert!(vec.capacity() >= 3);
646
646
/// ```
647
647
#[ stable]
648
- #[ unstable = "matches collection reform specification, waiting for dust to settle" ]
649
648
pub fn shrink_to_fit ( & mut self ) {
650
649
if mem:: size_of :: < T > ( ) == 0 { return }
651
650
Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ use intrinsics::TypeId;
88
88
#[ stable]
89
89
pub trait Any : ' static {
90
90
/// Get the `TypeId` of `self`
91
+ #[ stable]
91
92
fn get_type_id ( & self ) -> TypeId ;
92
93
}
93
94
@@ -117,7 +118,6 @@ pub trait AnyRefExt<'a> {
117
118
#[ stable]
118
119
impl < ' a > AnyRefExt < ' a > for & ' a Any {
119
120
#[ inline]
120
- #[ stable]
121
121
fn is < T : ' static > ( self ) -> bool {
122
122
// Get TypeId of the type this function is instantiated with
123
123
let t = TypeId :: of :: < T > ( ) ;
@@ -130,7 +130,6 @@ impl<'a> AnyRefExt<'a> for &'a Any {
130
130
}
131
131
132
132
#[ inline]
133
- #[ unstable = "naming conventions around acquiring references may change" ]
134
133
fn downcast_ref < T : ' static > ( self ) -> Option < & ' a T > {
135
134
if self . is :: < T > ( ) {
136
135
unsafe {
@@ -159,7 +158,6 @@ pub trait AnyMutRefExt<'a> {
159
158
#[ stable]
160
159
impl < ' a > AnyMutRefExt < ' a > for & ' a mut Any {
161
160
#[ inline]
162
- #[ unstable = "naming conventions around acquiring references may change" ]
163
161
fn downcast_mut < T : ' static > ( self ) -> Option < & ' a mut T > {
164
162
if self . is :: < T > ( ) {
165
163
unsafe {
You can’t perform that action at this time.
0 commit comments