about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/passes.rs
diff options
context:
space:
mode:
authorJason Newcomb <jsnewcomb@pm.me>2022-08-29 10:00:22 -0400
committerJason Newcomb <jsnewcomb@pm.me>2022-08-29 10:00:22 -0400
commit74f2d582d237770b092923702fe073300dcf46ed (patch)
tree9df3c0ab3c15d7cc010d0244845e21087427fd53 /compiler/rustc_lint/src/passes.rs
parent7a42ca942cda0d197a63373127e7e373305957a0 (diff)
downloadrust-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.rs5
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>;