File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -6805,7 +6805,7 @@ mod test_map {
68056805 assert_eq ! ( m2. len( ) , 2 ) ;
68066806 }
68076807
6808- thread_local ! { static DROP_VECTOR : RefCell <Vec <i32 >> = RefCell :: new( Vec :: new( ) ) }
6808+ thread_local ! { static DROP_VECTOR : RefCell <Vec <i32 >> = const { RefCell :: new( Vec :: new( ) ) } }
68096809
68106810 #[ derive( Hash , PartialEq , Eq ) ]
68116811 struct Droppable {
@@ -8524,7 +8524,7 @@ mod test_map {
85248524 #[ test]
85258525 #[ should_panic = "panic in clone" ]
85268526 fn test_clone_from_memory_leaks ( ) {
8527- use :: alloc:: vec:: Vec ;
8527+ use alloc:: vec:: Vec ;
85288528
85298529 struct CheckedClone {
85308530 panic_in_clone : bool ,
Original file line number Diff line number Diff line change @@ -2820,7 +2820,7 @@ mod test_set {
28202820 assert_eq ! ( last_i, 49 ) ;
28212821 }
28222822
2823- for _ in & s {
2823+ if !s . is_empty ( ) {
28242824 panic ! ( "s should be empty!" ) ;
28252825 }
28262826
@@ -2834,6 +2834,7 @@ mod test_set {
28342834 use core:: hash;
28352835
28362836 #[ derive( Debug ) ]
2837+ #[ allow( dead_code) ]
28372838 struct Foo ( & ' static str , i32 ) ;
28382839
28392840 impl PartialEq for Foo {
You can’t perform that action at this time.
0 commit comments