@@ -92,7 +92,7 @@ impl<T: Share + Send> Arc<T> {
92
92
}
93
93
94
94
#[ inline]
95
- fn inner < ' a > ( & ' a self ) -> & ' a ArcInner < T > {
95
+ fn inner ( & self ) -> & ArcInner < T > {
96
96
// This unsafety is ok because while this arc is alive we're guaranteed
97
97
// that the inner pointer is valid. Furthermore, we know that the
98
98
// `ArcInner` structure itself is `Share` because the inner data is
@@ -142,7 +142,7 @@ impl<T: Share + Send> Clone for Arc<T> {
142
142
#[ experimental = "Deref is experimental." ]
143
143
impl < T : Send + Share > Deref < T > for Arc < T > {
144
144
#[ inline]
145
- fn deref < ' a > ( & ' a self ) -> & ' a T {
145
+ fn deref ( & self ) -> & T {
146
146
& self . inner ( ) . data
147
147
}
148
148
}
@@ -155,7 +155,7 @@ impl<T: Send + Share + Clone> Arc<T> {
155
155
/// data is cloned if the reference count is greater than one.
156
156
#[ inline]
157
157
#[ experimental]
158
- pub fn make_unique < ' a > ( & ' a mut self ) -> & ' a mut T {
158
+ pub fn make_unique ( & mut self ) -> & mut T {
159
159
// Note that we hold a strong reference, which also counts as
160
160
// a weak reference, so we only clone if there is an
161
161
// additional reference of either kind.
@@ -238,7 +238,7 @@ impl<T: Share + Send> Weak<T> {
238
238
}
239
239
240
240
#[ inline]
241
- fn inner < ' a > ( & ' a self ) -> & ' a ArcInner < T > {
241
+ fn inner ( & self ) -> & ArcInner < T > {
242
242
// See comments above for why this is "safe"
243
243
unsafe { & * self . _ptr }
244
244
}
0 commit comments