File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 3131pub use self :: Level :: * ;
3232pub use self :: LintSource :: * ;
3333
34- use rustc_data_structures:: sync:: Lrc ;
34+ use rustc_data_structures:: sync:: { self , Lrc } ;
3535
3636use errors:: { DiagnosticBuilder , DiagnosticId } ;
3737use hir:: def_id:: { CrateNum , LOCAL_CRATE } ;
@@ -287,8 +287,9 @@ pub trait EarlyLintPass: LintPass {
287287}
288288
289289/// 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 > ;
292293
293294/// Identifies a lint known to the compiler.
294295#[ derive( Clone , Copy , Debug ) ]
You can’t perform that action at this time.
0 commit comments