From db731e42b3c139587cd7a87acaa92cd82ab8a11c Mon Sep 17 00:00:00 2001 From: Mara Bos Date: Tue, 24 Jan 2023 16:44:00 +0100 Subject: [PATCH] Work around issue 106930. --- compiler/rustc_ast/src/format.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/compiler/rustc_ast/src/format.rs b/compiler/rustc_ast/src/format.rs index ce99c2b58b5..da05b09b37d 100644 --- a/compiler/rustc_ast/src/format.rs +++ b/compiler/rustc_ast/src/format.rs @@ -67,6 +67,12 @@ pub struct FormatArguments { names: FxHashMap, } +// FIXME: Rustdoc has trouble proving Send/Sync for this. See #106930. +#[cfg(parallel_compiler)] +unsafe impl Sync for FormatArguments {} +#[cfg(parallel_compiler)] +unsafe impl Send for FormatArguments {} + impl FormatArguments { pub fn new() -> Self { Self {