Skip to content

Commit 74f2d58

Browse files
committed
Remove Sync requirement from lint pass objects as they are created on demand
1 parent 7a42ca9 commit 74f2d58

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: compiler/rustc_lint/src/passes.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,5 @@ macro_rules! declare_combined_early_lint_pass {
243243
}
244244

245245
/// A lint pass boxed up as a trait object.
246-
pub type EarlyLintPassObject = Box<dyn EarlyLintPass + sync::Send + sync::Sync + 'static>;
247-
pub type LateLintPassObject =
248-
Box<dyn for<'tcx> LateLintPass<'tcx> + sync::Send + sync::Sync + 'static>;
246+
pub type EarlyLintPassObject = Box<dyn EarlyLintPass + sync::Send + 'static>;
247+
pub type LateLintPassObject = Box<dyn for<'tcx> LateLintPass<'tcx> + sync::Send + 'static>;

0 commit comments

Comments
 (0)