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 {
6805
6805
assert_eq ! ( m2. len( ) , 2 ) ;
6806
6806
}
6807
6807
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( ) ) } }
6809
6809
6810
6810
#[ derive( Hash , PartialEq , Eq ) ]
6811
6811
struct Droppable {
@@ -8524,7 +8524,7 @@ mod test_map {
8524
8524
#[ test]
8525
8525
#[ should_panic = "panic in clone" ]
8526
8526
fn test_clone_from_memory_leaks ( ) {
8527
- use :: alloc:: vec:: Vec ;
8527
+ use alloc:: vec:: Vec ;
8528
8528
8529
8529
struct CheckedClone {
8530
8530
panic_in_clone : bool ,
Original file line number Diff line number Diff line change @@ -2820,7 +2820,7 @@ mod test_set {
2820
2820
assert_eq ! ( last_i, 49 ) ;
2821
2821
}
2822
2822
2823
- for _ in & s {
2823
+ if !s . is_empty ( ) {
2824
2824
panic ! ( "s should be empty!" ) ;
2825
2825
}
2826
2826
@@ -2834,6 +2834,7 @@ mod test_set {
2834
2834
use core:: hash;
2835
2835
2836
2836
#[ derive( Debug ) ]
2837
+ #[ allow( dead_code) ]
2837
2838
struct Foo ( & ' static str , i32 ) ;
2838
2839
2839
2840
impl PartialEq for Foo {
You can’t perform that action at this time.
0 commit comments