Skip to content

Commit db731e4

Browse files
committed
Work around issue 106930.
1 parent 7b07730 commit db731e4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

compiler/rustc_ast/src/format.rs

+6
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ pub struct FormatArguments {
6767
names: FxHashMap<Symbol, usize>,
6868
}
6969

70+
// FIXME: Rustdoc has trouble proving Send/Sync for this. See #106930.
71+
#[cfg(parallel_compiler)]
72+
unsafe impl Sync for FormatArguments {}
73+
#[cfg(parallel_compiler)]
74+
unsafe impl Send for FormatArguments {}
75+
7076
impl FormatArguments {
7177
pub fn new() -> Self {
7278
Self {

0 commit comments

Comments
 (0)