From 74f2d582d237770b092923702fe073300dcf46ed Mon Sep 17 00:00:00 2001 From: Jason Newcomb Date: Mon, 29 Aug 2022 10:00:22 -0400 Subject: [PATCH] Remove `Sync` requirement from lint pass objects as they are created on demand --- compiler/rustc_lint/src/passes.rs | 5 ++--- 1 file 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; -pub type LateLintPassObject = - Box LateLintPass<'tcx> + sync::Send + sync::Sync + 'static>; +pub type EarlyLintPassObject = Box; +pub type LateLintPassObject = Box LateLintPass<'tcx> + sync::Send + 'static>;