]> git.lizzy.rs Git - rust.git/commitdiff
Remove some unnecessary `Send` bounds.
authorNicholas Nethercote <n.nethercote@gmail.com>
Thu, 1 Dec 2022 04:42:31 +0000 (15:42 +1100)
committerNicholas Nethercote <n.nethercote@gmail.com>
Fri, 2 Dec 2022 02:59:28 +0000 (13:59 +1100)
Required to get the parallel compiler building again.

compiler/rustc_lint/src/passes.rs

index c8ea202559c714119a694c5b263c04af54834415..e8ab8f12fdcdaa8510d53c09337e849a1a387454 100644 (file)
@@ -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 @@ fn name(&self) -> &'static str {
 }
 
 /// A lint pass boxed up as a trait object.
-pub type EarlyLintPassObject = Box<dyn EarlyLintPass + sync::Send + 'static>;
-pub type LateLintPassObject<'tcx> = Box<dyn LateLintPass<'tcx> + sync::Send + 'tcx>;
+pub type EarlyLintPassObject = Box<dyn EarlyLintPass + 'static>;
+pub type LateLintPassObject<'tcx> = Box<dyn LateLintPass<'tcx> + 'tcx>;