about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2023-01-24 16:44:00 +0100
committerMara Bos <m-ou.se@m-ou.se>2023-01-24 16:44:00 +0100
commitdb731e42b3c139587cd7a87acaa92cd82ab8a11c (patch)
tree2a0a59694224440f6e0f1d426728ee839f6073ea
parent7b077307fd156275001ce5ca7a53e250eabcb0b6 (diff)
downloadrust-db731e42b3c139587cd7a87acaa92cd82ab8a11c.tar.gz
rust-db731e42b3c139587cd7a87acaa92cd82ab8a11c.zip
Work around issue 106930.
-rw-r--r--compiler/rustc_ast/src/format.rs6
1 files changed, 6 insertions, 0 deletions
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<Symbol, usize>,
 }
 
+// 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 {