File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 31
31
pub use self :: Level :: * ;
32
32
pub use self :: LintSource :: * ;
33
33
34
- use rustc_data_structures:: sync:: Lrc ;
34
+ use rustc_data_structures:: sync:: { self , Lrc } ;
35
35
36
36
use errors:: { DiagnosticBuilder , DiagnosticId } ;
37
37
use hir:: def_id:: { CrateNum , LOCAL_CRATE } ;
@@ -287,8 +287,9 @@ pub trait EarlyLintPass: LintPass {
287
287
}
288
288
289
289
/// A lint pass boxed up as a trait object.
290
- pub type EarlyLintPassObject = Box < dyn EarlyLintPass + ' static > ;
291
- pub type LateLintPassObject = Box < dyn for < ' a , ' tcx > LateLintPass < ' a , ' tcx > + ' static > ;
290
+ pub type EarlyLintPassObject = Box < dyn EarlyLintPass + sync:: Send + sync:: Sync + ' static > ;
291
+ pub type LateLintPassObject = Box < dyn for < ' a , ' tcx > LateLintPass < ' a , ' tcx > + sync:: Send
292
+ + sync:: Sync + ' static > ;
292
293
293
294
/// Identifies a lint known to the compiler.
294
295
#[ derive( Clone , Copy , Debug ) ]
You can’t perform that action at this time.
0 commit comments