From 44cb4f70a8c06abe99ea164166ecc38abdde359b Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Thu, 1 Dec 2022 15:42:31 +1100 Subject: [PATCH] Remove some unnecessary `Send` bounds. Required to get the parallel compiler building again. --- 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 c8ea202559c..e8ab8f12fdc 100644 --- a/compiler/rustc_lint/src/passes.rs +++ b/compiler/rustc_lint/src/passes.rs @@ -1,7 +1,6 @@ use crate::context::{EarlyContext, LateContext}; use rustc_ast as ast; -use rustc_data_structures::sync; use rustc_hir as hir; use rustc_session::lint::builtin::HardwiredLints; use rustc_session::lint::LintPass; @@ -231,5 +230,5 @@ macro_rules! declare_combined_early_lint_pass { } /// A lint pass boxed up as a trait object. -pub type EarlyLintPassObject = Box; -pub type LateLintPassObject<'tcx> = Box + sync::Send + 'tcx>; +pub type EarlyLintPassObject = Box; +pub type LateLintPassObject<'tcx> = Box + 'tcx>;