This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree 3 files changed +54
-3
lines changed 3 files changed +54
-3
lines changed Original file line number Diff line number Diff line change @@ -426,3 +426,29 @@ named!(
426
426
427
427
// #2857
428
428
convert_args ! ( vec!( 1 , 2 , 3 ) ) ;
429
+
430
+ // #3031
431
+ thread_local ! (
432
+ /// TLV Holds a set of JSTraceables that need to be rooted
433
+ static ROOTED_TRACEABLES : RefCell <RootedTraceableSet > =
434
+ RefCell :: new( RootedTraceableSet :: new( ) ) ;
435
+ ) ;
436
+
437
+ thread_local ! [
438
+ /// TLV Holds a set of JSTraceables that need to be rooted
439
+ static ROOTED_TRACEABLES : RefCell <RootedTraceableSet > =
440
+ RefCell :: new( RootedTraceableSet :: new( ) ) ;
441
+
442
+ /// TLV Holds a set of JSTraceables that need to be rooted
443
+ static ROOTED_TRACEABLES : RefCell <RootedTraceableSet > =
444
+ RefCell :: new( RootedTraceableSet :: new( 0 ) ) ;
445
+
446
+ /// TLV Holds a set of JSTraceables that need to be rooted
447
+ static ROOTED_TRACEABLES : RefCell <RootedTraceableSet > =
448
+ RefCell :: new( RootedTraceableSet :: new( ) , xxx, yyy) ;
449
+
450
+ /// TLV Holds a set of JSTraceables that need to be rooted
451
+ static ROOTED_TRACEABLES : RefCell <RootedTraceableSet > =
452
+ RefCell :: new( RootedTraceableSet :: new( 1234 ) ) ;
453
+
454
+ ] ;
Original file line number Diff line number Diff line change 11
11
// Format items that appear as arguments of macro call.
12
12
//! ```rust
13
13
//! let x = 3;
14
- //! some_macro!(pub fn foo() {
15
- //! println!("Don't unindent me!");
16
- //! });
14
+ //! some_macro!(
15
+ //! pub fn foo() {
16
+ //! println!("Don't unindent me!");
17
+ //! }
18
+ //! );
17
19
//! ```
Original file line number Diff line number Diff line change @@ -1007,3 +1007,26 @@ named!(
1007
1007
1008
1008
// #2857
1009
1009
convert_args ! ( vec!( 1 , 2 , 3 ) ) ;
1010
+
1011
+ // #3031
1012
+ thread_local ! (
1013
+ /// TLV Holds a set of JSTraceables that need to be rooted
1014
+ static ROOTED_TRACEABLES : RefCell <RootedTraceableSet > = RefCell :: new( RootedTraceableSet :: new( ) ) ;
1015
+ ) ;
1016
+
1017
+ thread_local ! [
1018
+ /// TLV Holds a set of JSTraceables that need to be rooted
1019
+ static ROOTED_TRACEABLES : RefCell <RootedTraceableSet > = RefCell :: new( RootedTraceableSet :: new( ) ) ;
1020
+
1021
+ /// TLV Holds a set of JSTraceables that need to be rooted
1022
+ static ROOTED_TRACEABLES : RefCell <RootedTraceableSet > =
1023
+ RefCell :: new( RootedTraceableSet :: new( 0 ) ) ;
1024
+
1025
+ /// TLV Holds a set of JSTraceables that need to be rooted
1026
+ static ROOTED_TRACEABLES : RefCell <RootedTraceableSet > =
1027
+ RefCell :: new( RootedTraceableSet :: new( ) , xxx, yyy) ;
1028
+
1029
+ /// TLV Holds a set of JSTraceables that need to be rooted
1030
+ static ROOTED_TRACEABLES : RefCell <RootedTraceableSet > =
1031
+ RefCell :: new( RootedTraceableSet :: new( 1234 ) ) ;
1032
+ ] ;
You can’t perform that action at this time.
0 commit comments