@@ -161,7 +161,6 @@ impl TempAllocPolicy {
161
161
}
162
162
}
163
163
#[ repr( C ) ]
164
- #[ unsafe_no_drop_flag]
165
164
#[ derive( Debug ) ]
166
165
pub struct LinkedListElement < T > {
167
166
pub mNext : * mut LinkedListElement < T > ,
@@ -174,7 +173,6 @@ pub const NODE_KIND_SENTINEL: LinkedListElement_NodeKind =
174
173
#[ derive( Debug , Copy , Clone , Eq , PartialEq , Hash ) ]
175
174
pub enum LinkedListElement_NodeKind { NODE_KIND_NORMAL = 0 , }
176
175
#[ repr( C ) ]
177
- #[ unsafe_no_drop_flag]
178
176
#[ derive( Debug ) ]
179
177
pub struct LinkedList < T > {
180
178
pub sentinel : LinkedListElement < T > ,
@@ -185,7 +183,6 @@ pub struct LinkedList_Iterator<T> {
185
183
pub mCurrent : * mut T ,
186
184
}
187
185
#[ repr( C ) ]
188
- #[ unsafe_no_drop_flag]
189
186
#[ derive( Debug ) ]
190
187
pub struct AutoCleanLinkedList < T > {
191
188
pub _base : LinkedList < T > ,
@@ -362,7 +359,6 @@ fn bindgen_test_layout_Runtime() {
362
359
assert_eq ! ( :: std:: mem:: align_of:: <Runtime >( ) , 4usize ) ;
363
360
}
364
361
#[ repr( C ) ]
365
- #[ unsafe_no_drop_flag]
366
362
#[ derive( Debug ) ]
367
363
pub struct AutoGCRooter {
368
364
pub down : * mut AutoGCRooter ,
@@ -411,7 +407,6 @@ pub enum StackKind {
411
407
}
412
408
pub type RootedListHeads = :: std:: os:: raw:: c_void ;
413
409
#[ repr( C ) ]
414
- #[ unsafe_no_drop_flag]
415
410
pub struct RootLists {
416
411
pub stackRoots_ : [ u32 ; 12usize ] ,
417
412
pub autoGCRooters_ : * mut AutoGCRooter ,
@@ -449,7 +444,6 @@ impl RootLists {
449
444
}
450
445
}
451
446
#[ repr( C ) ]
452
- #[ unsafe_no_drop_flag]
453
447
pub struct ContextFriendFields {
454
448
pub runtime_ : * mut JSRuntime ,
455
449
pub compartment_ : * mut JSCompartment ,
@@ -463,7 +457,6 @@ fn bindgen_test_layout_ContextFriendFields() {
463
457
}
464
458
pub enum PerThreadData { }
465
459
#[ repr( C ) ]
466
- #[ unsafe_no_drop_flag]
467
460
pub struct PerThreadDataFriendFields {
468
461
pub roots : RootLists ,
469
462
pub nativeStackLimit : [ usize ; 3usize ] ,
@@ -515,7 +508,6 @@ impl ::std::clone::Clone for MallocAllocPolicy {
515
508
pub enum VectorTesting { }
516
509
pub enum Cell { }
517
510
#[ repr( C ) ]
518
- #[ unsafe_no_drop_flag]
519
511
pub struct Zone {
520
512
pub runtime_ : * mut JSRuntime ,
521
513
pub barrierTracer_ : * mut JSTracer ,
@@ -715,7 +707,6 @@ pub type GCNurseryCollectionCallback =
715
707
reason : Reason ) > ;
716
708
/** Ensure that generational GC is disabled within some scope. */
717
709
#[ repr( C ) ]
718
- #[ unsafe_no_drop_flag]
719
710
#[ derive( Debug ) ]
720
711
pub struct AutoDisableGenerationalGC {
721
712
pub gc : * mut GCRuntime ,
@@ -730,7 +721,6 @@ fn bindgen_test_layout_AutoDisableGenerationalGC() {
730
721
* the static rooting hazard analysis.
731
722
*/
732
723
#[ repr( C ) ]
733
- #[ unsafe_no_drop_flag]
734
724
#[ derive( Debug ) ]
735
725
pub struct AutoAssertOnGC ;
736
726
/**
@@ -785,7 +775,6 @@ fn bindgen_test_layout_AutoAssertGCCallback() {
785
775
* heap.
786
776
*/
787
777
#[ repr( C ) ]
788
- #[ unsafe_no_drop_flag]
789
778
#[ derive( Debug ) ]
790
779
pub struct AutoCheckCannotGC {
791
780
pub _base : AutoAssertOnGC ,
@@ -904,7 +893,6 @@ impl CallbackTracer {
904
893
}
905
894
}
906
895
#[ repr( C ) ]
907
- #[ unsafe_no_drop_flag]
908
896
#[ derive( Debug ) ]
909
897
pub struct AutoTracingName {
910
898
pub trc_ : * mut CallbackTracer ,
@@ -916,7 +904,6 @@ fn bindgen_test_layout_AutoTracingName() {
916
904
assert_eq ! ( :: std:: mem:: align_of:: <AutoTracingName >( ) , 4usize ) ;
917
905
}
918
906
#[ repr( C ) ]
919
- #[ unsafe_no_drop_flag]
920
907
#[ derive( Debug ) ]
921
908
pub struct AutoTracingIndex {
922
909
pub trc_ : * mut CallbackTracer ,
@@ -927,7 +914,6 @@ fn bindgen_test_layout_AutoTracingIndex() {
927
914
assert_eq ! ( :: std:: mem:: align_of:: <AutoTracingIndex >( ) , 4usize ) ;
928
915
}
929
916
#[ repr( C ) ]
930
- #[ unsafe_no_drop_flag]
931
917
#[ derive( Debug ) ]
932
918
pub struct AutoTracingDetails {
933
919
pub trc_ : * mut CallbackTracer ,
@@ -1089,7 +1075,6 @@ pub struct DispatchWrapper<T> {
1089
1075
* specialization, define a RootedBase<T> specialization containing them.
1090
1076
*/
1091
1077
#[ repr( C ) ]
1092
- #[ unsafe_no_drop_flag]
1093
1078
#[ derive( Debug ) ]
1094
1079
pub struct Rooted < T > {
1095
1080
pub _base : RootedBase < T > ,
@@ -1158,15 +1143,13 @@ pub enum AllowGC { NoGC = 0, CanGC = 1, }
1158
1143
* marked when the object itself is marked.
1159
1144
*/
1160
1145
#[ repr( C ) ]
1161
- #[ unsafe_no_drop_flag]
1162
1146
#[ derive( Debug ) ]
1163
1147
pub struct PersistentRooted < T > {
1164
1148
pub _base : PersistentRootedBase < T > ,
1165
1149
pub _base1 : LinkedListElement < T > ,
1166
1150
pub ptr : T ,
1167
1151
}
1168
1152
#[ repr( C ) ]
1169
- #[ unsafe_no_drop_flag]
1170
1153
pub struct ObjectPtr {
1171
1154
pub value : Heap < * mut JSObject > ,
1172
1155
}
@@ -1931,7 +1914,6 @@ pub type UnwatchOp =
1931
1914
obj : HandleObject ,
1932
1915
id : HandleId ) -> bool > ;
1933
1916
#[ repr( C ) ]
1934
- #[ unsafe_no_drop_flag]
1935
1917
#[ derive( Debug ) ]
1936
1918
pub struct ElementAdder {
1937
1919
pub resObj_ : RootedObject ,
@@ -2318,7 +2300,6 @@ fn bindgen_test_layout_JSStructuredCloneCallbacks() {
2318
2300
}
2319
2301
/** RAII sugar for JS_WriteStructuredClone. */
2320
2302
#[ repr( C ) ]
2321
- #[ unsafe_no_drop_flag]
2322
2303
#[ derive( Debug ) ]
2323
2304
pub struct JSAutoStructuredCloneBuffer {
2324
2305
pub data_ : * mut u64 ,
@@ -2512,7 +2493,6 @@ impl JSAutoStructuredCloneBuffer {
2512
2493
}
2513
2494
}
2514
2495
#[ repr( C ) ]
2515
- #[ unsafe_no_drop_flag]
2516
2496
#[ derive( Debug ) ]
2517
2497
pub struct JSPrincipals {
2518
2498
pub _vftable : * const _vftable_JSPrincipals ,
@@ -2562,14 +2542,12 @@ pub type JSReadPrincipalsOp =
2562
2542
-> bool > ;
2563
2543
pub enum TwoByteChars { }
2564
2544
#[ repr( C ) ]
2565
- #[ unsafe_no_drop_flag]
2566
2545
#[ derive( Debug ) ]
2567
2546
pub struct AutoVectorRooterBase < T > {
2568
2547
pub _base : AutoGCRooter ,
2569
2548
pub _phantom0 : :: std:: marker:: PhantomData < T > ,
2570
2549
}
2571
2550
#[ repr( C ) ]
2572
- #[ unsafe_no_drop_flag]
2573
2551
#[ derive( Debug ) ]
2574
2552
pub struct AutoVectorRooter < T > {
2575
2553
pub _base : AutoVectorRooterBase < T > ,
@@ -2584,7 +2562,6 @@ pub type StringVector = ::std::os::raw::c_void;
2584
2562
* Custom rooting behavior for internal and external clients.
2585
2563
*/
2586
2564
#[ repr( C ) ]
2587
- #[ unsafe_no_drop_flag]
2588
2565
#[ derive( Debug ) ]
2589
2566
pub struct CustomAutoRooter {
2590
2567
pub _vftable : * const _vftable_CustomAutoRooter ,
@@ -2838,7 +2815,6 @@ pub type JSCompartmentNameCallback =
2838
2815
* JS::Compile(cx, options, srcBuf);
2839
2816
*/
2840
2817
#[ repr( C ) ]
2841
- #[ unsafe_no_drop_flag]
2842
2818
#[ derive( Debug ) ]
2843
2819
pub struct SourceBufferHolder {
2844
2820
pub data_ : * const :: std:: os:: raw:: c_ushort ,
@@ -2856,7 +2832,6 @@ fn bindgen_test_layout_SourceBufferHolder() {
2856
2832
pub type JS_CurrentEmbedderTimeFunction =
2857
2833
:: std:: option:: Option < unsafe extern "C" fn ( ) -> f64 > ;
2858
2834
#[ repr( C ) ]
2859
- #[ unsafe_no_drop_flag]
2860
2835
#[ derive( Debug ) ]
2861
2836
pub struct JSAutoRequest {
2862
2837
pub mContext : * mut JSContext ,
@@ -3029,7 +3004,6 @@ fn bindgen_test_layout_RuntimeOptions() {
3029
3004
assert_eq ! ( :: std:: mem:: align_of:: <RuntimeOptions >( ) , 1usize ) ;
3030
3005
}
3031
3006
#[ repr( C ) ]
3032
- #[ unsafe_no_drop_flag]
3033
3007
#[ derive( Debug ) ]
3034
3008
pub struct JSAutoCompartment {
3035
3009
pub cx_ : * mut JSContext ,
@@ -3041,7 +3015,6 @@ fn bindgen_test_layout_JSAutoCompartment() {
3041
3015
assert_eq ! ( :: std:: mem:: align_of:: <JSAutoCompartment >( ) , 4usize ) ;
3042
3016
}
3043
3017
#[ repr( C ) ]
3044
- #[ unsafe_no_drop_flag]
3045
3018
#[ derive( Debug ) ]
3046
3019
pub struct JSAutoNullableCompartment {
3047
3020
pub cx_ : * mut JSContext ,
@@ -3536,7 +3509,6 @@ pub enum PromiseState { Pending = 0, Fulfilled = 1, Rejected = 2, }
3536
3509
* stack frames.
3537
3510
*/
3538
3511
#[ repr( C ) ]
3539
- #[ unsafe_no_drop_flag]
3540
3512
#[ derive( Debug ) ]
3541
3513
pub struct AutoSetAsyncStackForNewCalls {
3542
3514
pub cx : * mut JSContext ,
@@ -3558,7 +3530,6 @@ fn bindgen_test_layout_AutoSetAsyncStackForNewCalls() {
3558
3530
4usize ) ;
3559
3531
}
3560
3532
#[ repr( C ) ]
3561
- #[ unsafe_no_drop_flag]
3562
3533
#[ derive( Debug ) ]
3563
3534
pub struct JSAutoByteString {
3564
3535
pub mBytes : * mut :: std:: os:: raw:: c_char ,
@@ -3689,7 +3660,6 @@ pub type WarningReporter =
3689
3660
* return ok;
3690
3661
*/
3691
3662
#[ repr( C ) ]
3692
- #[ unsafe_no_drop_flag]
3693
3663
#[ derive( Debug ) ]
3694
3664
pub struct AutoSaveExceptionState {
3695
3665
pub context : * mut JSContext ,
@@ -3730,7 +3700,6 @@ pub enum JSJitCompilerOption {
3730
3700
}
3731
3701
pub enum ScriptSource { }
3732
3702
#[ repr( C ) ]
3733
- #[ unsafe_no_drop_flag]
3734
3703
#[ derive( Debug ) ]
3735
3704
pub struct AutoFilename {
3736
3705
pub ss_ : * mut ScriptSource ,
@@ -3783,7 +3752,6 @@ impl AutoFilename {
3783
3752
}
3784
3753
}
3785
3754
#[ repr( C ) ]
3786
- #[ unsafe_no_drop_flag]
3787
3755
#[ derive( Debug ) ]
3788
3756
pub struct AutoHideScriptedCaller {
3789
3757
pub mContext : * mut JSContext ,
@@ -3882,7 +3850,6 @@ fn bindgen_test_layout_AsmJSCacheOps() {
3882
3850
* }
3883
3851
*/
3884
3852
#[ repr( C ) ]
3885
- #[ unsafe_no_drop_flag]
3886
3853
#[ derive( Debug ) ]
3887
3854
pub struct ForOfIterator {
3888
3855
pub cx_ : * mut JSContext ,
@@ -4227,7 +4194,6 @@ fn bindgen_test_layout_JSFunctionSpecWithHelp() {
4227
4194
* find the source.
4228
4195
*/
4229
4196
#[ repr( C ) ]
4230
- #[ unsafe_no_drop_flag]
4231
4197
#[ derive( Debug ) ]
4232
4198
pub struct SourceHook {
4233
4199
pub _vftable : * const _vftable_SourceHook ,
@@ -4537,7 +4503,6 @@ fn bindgen_test_layout_CompartmentsWithPrincipals() {
4537
4503
assert_eq ! ( :: std:: mem:: align_of:: <CompartmentsWithPrincipals >( ) , 4usize ) ;
4538
4504
}
4539
4505
#[ repr( C ) ]
4540
- #[ unsafe_no_drop_flag]
4541
4506
pub struct ExpandoAndGeneration {
4542
4507
pub expando : Heap < Value > ,
4543
4508
pub generation : u64 ,
@@ -5347,7 +5312,6 @@ pub type CTypesActivityCallback =
5347
5312
:: std:: option:: Option < unsafe extern "C" fn ( cx : * mut JSContext ,
5348
5313
type_ : CTypesActivityType ) > ;
5349
5314
#[ repr( C ) ]
5350
- #[ unsafe_no_drop_flag]
5351
5315
#[ derive( Debug ) ]
5352
5316
pub struct AutoCTypesActivityCallback {
5353
5317
pub cx : * mut JSContext ,
@@ -5377,7 +5341,6 @@ fn bindgen_test_layout_AllocationMetadataBuilder() {
5377
5341
assert_eq ! ( :: std:: mem:: align_of:: <AllocationMetadataBuilder >( ) , 4usize ) ;
5378
5342
}
5379
5343
#[ repr( C ) ]
5380
- #[ unsafe_no_drop_flag]
5381
5344
#[ derive( Debug ) ]
5382
5345
pub struct NativeProfiler {
5383
5346
pub _vftable : * const _vftable_NativeProfiler ,
@@ -5397,7 +5360,6 @@ fn bindgen_test_layout_NativeProfiler() {
5397
5360
assert_eq ! ( :: std:: mem:: align_of:: <NativeProfiler >( ) , 4usize ) ;
5398
5361
}
5399
5362
#[ repr( C ) ]
5400
- #[ unsafe_no_drop_flag]
5401
5363
#[ derive( Debug ) ]
5402
5364
pub struct GCHeapProfiler {
5403
5365
pub _vftable : * const _vftable_GCHeapProfiler ,
@@ -5631,7 +5593,6 @@ fn bindgen_test_layout_ClassInfo() {
5631
5593
* holds a copy of the filename.
5632
5594
*/
5633
5595
#[ repr( C ) ]
5634
- #[ unsafe_no_drop_flag]
5635
5596
#[ derive( Debug ) ]
5636
5597
pub struct NotableClassInfo {
5637
5598
pub _base : ClassInfo ,
@@ -5716,7 +5677,6 @@ fn bindgen_test_layout_StringInfo() {
5716
5677
* NotableStringInfo holds a copy of some or all of the string's chars.
5717
5678
*/
5718
5679
#[ repr( C ) ]
5719
- #[ unsafe_no_drop_flag]
5720
5680
#[ derive( Debug ) ]
5721
5681
pub struct NotableStringInfo {
5722
5682
pub _base : StringInfo ,
@@ -5755,7 +5715,6 @@ fn bindgen_test_layout_ScriptSourceInfo() {
5755
5715
* class holds a copy of the filename.
5756
5716
*/
5757
5717
#[ repr( C ) ]
5758
- #[ unsafe_no_drop_flag]
5759
5718
#[ derive( Debug ) ]
5760
5719
pub struct NotableScriptSourceInfo {
5761
5720
pub _base : ScriptSourceInfo ,
@@ -5771,7 +5730,6 @@ fn bindgen_test_layout_NotableScriptSourceInfo() {
5771
5730
* compartments within it.
5772
5731
*/
5773
5732
#[ repr( C ) ]
5774
- #[ unsafe_no_drop_flag]
5775
5733
pub struct RuntimeSizes {
5776
5734
pub object : usize ,
5777
5735
pub atomsTable : usize ,
@@ -5816,7 +5774,6 @@ fn bindgen_test_layout_UnusedGCThingSizes() {
5816
5774
assert_eq ! ( :: std:: mem:: align_of:: <UnusedGCThingSizes >( ) , 4usize ) ;
5817
5775
}
5818
5776
#[ repr( C ) ]
5819
- #[ unsafe_no_drop_flag]
5820
5777
pub struct ZoneStats {
5821
5778
pub symbolsGCHeap : usize ,
5822
5779
pub gcHeapArenaAdmin : usize ,
@@ -5851,7 +5808,6 @@ impl ZoneStats {
5851
5808
}
5852
5809
}
5853
5810
#[ repr( C ) ]
5854
- #[ unsafe_no_drop_flag]
5855
5811
pub struct CompartmentStats {
5856
5812
pub objectsPrivate : usize ,
5857
5813
pub scriptsGCHeap : usize ,
0 commit comments