File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ use rustc_span::symbol::sym;
25
25
use rustc_span:: Span ;
26
26
27
27
use std:: cell:: RefCell ;
28
+ use std:: lazy:: SyncLazy ;
28
29
use std:: mem;
29
30
use std:: rc:: Rc ;
30
31
@@ -271,9 +272,8 @@ crate fn create_config(
271
272
providers. typeck_item_bodies = |_, _| { } ;
272
273
// hack so that `used_trait_imports` won't try to call typeck
273
274
providers. used_trait_imports = |_, _| {
274
- lazy_static ! {
275
- static ref EMPTY_SET : FxHashSet <LocalDefId > = FxHashSet :: default ( ) ;
276
- }
275
+ static EMPTY_SET : SyncLazy < FxHashSet < LocalDefId > > =
276
+ SyncLazy :: new ( FxHashSet :: default) ;
277
277
& EMPTY_SET
278
278
} ;
279
279
// In case typeck does end up being called, don't ICE in case there were name resolution errors
Original file line number Diff line number Diff line change 18
18
#![ recursion_limit = "256" ]
19
19
#![ warn( rustc:: internal) ]
20
20
21
- #[ macro_use]
22
- extern crate lazy_static;
23
21
#[ macro_use]
24
22
extern crate tracing;
25
23
You can’t perform that action at this time.
0 commit comments