1
1
//! A set of high-level utility fixture methods to use in tests.
2
- use std:: { mem, str:: FromStr , sync:: Arc } ;
2
+ use std:: { mem, str:: FromStr , sync} ;
3
3
4
4
use cfg:: CfgOptions ;
5
5
use rustc_hash:: FxHashMap ;
6
6
use test_utils:: {
7
7
extract_range_or_offset, Fixture , FixtureWithProjectMeta , RangeOrOffset , CURSOR_MARKER ,
8
8
ESCAPED_CURSOR_MARKER ,
9
9
} ;
10
+ use triomphe:: Arc ;
10
11
use tt:: token_id:: { Leaf , Subtree , TokenTree } ;
11
12
use vfs:: { file_set:: FileSet , VfsPath } ;
12
13
@@ -334,7 +335,7 @@ pub fn identity(_attr: TokenStream, item: TokenStream) -> TokenStream {
334
335
ProcMacro {
335
336
name : "identity" . into ( ) ,
336
337
kind : crate :: ProcMacroKind :: Attr ,
337
- expander : Arc :: new ( IdentityProcMacroExpander ) ,
338
+ expander : sync :: Arc :: new ( IdentityProcMacroExpander ) ,
338
339
} ,
339
340
) ,
340
341
(
@@ -348,7 +349,7 @@ pub fn derive_identity(item: TokenStream) -> TokenStream {
348
349
ProcMacro {
349
350
name : "DeriveIdentity" . into ( ) ,
350
351
kind : crate :: ProcMacroKind :: CustomDerive ,
351
- expander : Arc :: new ( IdentityProcMacroExpander ) ,
352
+ expander : sync :: Arc :: new ( IdentityProcMacroExpander ) ,
352
353
} ,
353
354
) ,
354
355
(
@@ -362,7 +363,7 @@ pub fn input_replace(attr: TokenStream, _item: TokenStream) -> TokenStream {
362
363
ProcMacro {
363
364
name : "input_replace" . into ( ) ,
364
365
kind : crate :: ProcMacroKind :: Attr ,
365
- expander : Arc :: new ( AttributeInputReplaceProcMacroExpander ) ,
366
+ expander : sync :: Arc :: new ( AttributeInputReplaceProcMacroExpander ) ,
366
367
} ,
367
368
) ,
368
369
(
@@ -376,7 +377,7 @@ pub fn mirror(input: TokenStream) -> TokenStream {
376
377
ProcMacro {
377
378
name : "mirror" . into ( ) ,
378
379
kind : crate :: ProcMacroKind :: FuncLike ,
379
- expander : Arc :: new ( MirrorProcMacroExpander ) ,
380
+ expander : sync :: Arc :: new ( MirrorProcMacroExpander ) ,
380
381
} ,
381
382
) ,
382
383
(
@@ -390,7 +391,7 @@ pub fn shorten(input: TokenStream) -> TokenStream {
390
391
ProcMacro {
391
392
name : "shorten" . into ( ) ,
392
393
kind : crate :: ProcMacroKind :: FuncLike ,
393
- expander : Arc :: new ( ShortenProcMacroExpander ) ,
394
+ expander : sync :: Arc :: new ( ShortenProcMacroExpander ) ,
394
395
} ,
395
396
) ,
396
397
]
0 commit comments