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 {