File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -227,6 +227,12 @@ impl<T: ?Sized> !RefUnwindSafe for UnsafeCell<T> {}
227
227
#[ stable( feature = "catch_unwind" , since = "1.9.0" ) ]
228
228
impl < T > RefUnwindSafe for AssertUnwindSafe < T > { }
229
229
230
+ // XXX: Obviously wrong, but what should it be?
231
+ #[ stable( feature = "catch_unwind" , since = "1.9.0" ) ]
232
+ impl < T : ?Sized > RefUnwindSafe for Mutex < T > { }
233
+ #[ stable( feature = "catch_unwind" , since = "1.9.0" ) ]
234
+ impl < T : ?Sized > RefUnwindSafe for RwLock < T > { }
235
+
230
236
#[ stable( feature = "catch_unwind" , since = "1.9.0" ) ]
231
237
impl < T > Deref for AssertUnwindSafe < T > {
232
238
type Target = T ;
Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ fn main() {
36
36
assert :: < Box < i32 > > ( ) ;
37
37
assert :: < Mutex < i32 > > ( ) ;
38
38
assert :: < RwLock < i32 > > ( ) ;
39
+ assert :: < & Mutex < i32 > > ( ) ;
40
+ assert :: < & RwLock < i32 > > ( ) ;
39
41
assert :: < Rc < i32 > > ( ) ;
40
42
assert :: < Arc < i32 > > ( ) ;
41
43
You can’t perform that action at this time.
0 commit comments