File tree 3 files changed +14
-0
lines changed
3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 38
38
#![ feature( ptr_as_ref) ]
39
39
#![ feature( raw) ]
40
40
#![ feature( staged_api) ]
41
+ #![ feature( unsafe_destructor_blind_to_params) ]
41
42
#![ cfg_attr( test, feature( test) ) ]
42
43
44
+ // SNAP ba0e1cd
45
+ #![ allow( unused_features) ]
46
+ // SNAP ba0e1cd
47
+ #![ allow( unused_attributes) ]
48
+
43
49
extern crate alloc;
44
50
45
51
use std:: cell:: { Cell , RefCell } ;
@@ -512,6 +518,7 @@ impl<T> TypedArena<T> {
512
518
}
513
519
514
520
impl < T > Drop for TypedArena < T > {
521
+ #[ unsafe_destructor_blind_to_params]
515
522
fn drop ( & mut self ) {
516
523
unsafe {
517
524
// Determine how much was filled.
Original file line number Diff line number Diff line change 30
30
#![ allow( trivial_casts) ]
31
31
#![ cfg_attr( test, allow( deprecated) ) ] // rand
32
32
33
+ // SNAP ba0e1cd
34
+ #![ allow( unused_features) ]
35
+ // SNAP ba0e1cd
36
+ #![ allow( unused_attributes) ]
37
+
33
38
#![ feature( alloc) ]
34
39
#![ feature( box_patterns) ]
35
40
#![ feature( box_raw) ]
59
64
#![ feature( unboxed_closures) ]
60
65
#![ feature( unicode) ]
61
66
#![ feature( unique) ]
67
+ #![ feature( unsafe_destructor_blind_to_params) ]
62
68
#![ feature( unsafe_no_drop_flag, filling_drop) ]
63
69
#![ feature( utf8_error) ]
64
70
#![ cfg_attr( test, feature( rand, test) ) ]
Original file line number Diff line number Diff line change @@ -1651,6 +1651,7 @@ impl<T: Ord> Ord for Vec<T> {
1651
1651
1652
1652
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1653
1653
impl < T > Drop for Vec < T > {
1654
+ #[ unsafe_destructor_blind_to_params]
1654
1655
fn drop ( & mut self ) {
1655
1656
// This is (and should always remain) a no-op if the fields are
1656
1657
// zeroed (when moving out, because of #[unsafe_no_drop_flag]).
You can’t perform that action at this time.
0 commit comments