]> git.lizzy.rs Git - rust.git/commitdiff
Work around issue 106930.
authorMara Bos <m-ou.se@m-ou.se>
Tue, 24 Jan 2023 15:44:00 +0000 (16:44 +0100)
committerMara Bos <m-ou.se@m-ou.se>
Tue, 24 Jan 2023 15:44:00 +0000 (16:44 +0100)
compiler/rustc_ast/src/format.rs

index ce99c2b58b5703da19c733c4fb28212a0f280275..da05b09b37dccc6acde3b442eff635bf24284f80 100644 (file)
@@ -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 {