Skip to content

Commit

Permalink
Remove Sync requirement from lint pass objects as they are created …
Browse files Browse the repository at this point in the history
…on demand
  • Loading branch information
Jarcho committed Aug 29, 2022
1 parent 7a42ca9 commit 74f2d58
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions compiler/rustc_lint/src/passes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,5 @@ macro_rules! declare_combined_early_lint_pass {
}

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

0 comments on commit 74f2d58

Please sign in to comment.