diff options
| author | Jason Newcomb <jsnewcomb@pm.me> | 2022-08-29 10:00:22 -0400 |
|---|---|---|
| committer | Jason Newcomb <jsnewcomb@pm.me> | 2022-08-29 10:00:22 -0400 |
| commit | 74f2d582d237770b092923702fe073300dcf46ed (patch) | |
| tree | 9df3c0ab3c15d7cc010d0244845e21087427fd53 /compiler/rustc_lint/src/passes.rs | |
| parent | 7a42ca942cda0d197a63373127e7e373305957a0 (diff) | |
| download | rust-74f2d582d237770b092923702fe073300dcf46ed.tar.gz rust-74f2d582d237770b092923702fe073300dcf46ed.zip | |
Remove `Sync` requirement from lint pass objects as they are created on demand
Diffstat (limited to 'compiler/rustc_lint/src/passes.rs')
| -rw-r--r-- | compiler/rustc_lint/src/passes.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_lint/src/passes.rs b/compiler/rustc_lint/src/passes.rs index 413f06a97a2..90c554c2e04 100644 --- a/compiler/rustc_lint/src/passes.rs +++ b/compiler/rustc_lint/src/passes.rs @@ -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>; |
