Skip to content

Commit

Permalink
Work around issue 106930.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Jan 24, 2023
1 parent 7b07730 commit db731e4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions compiler/rustc_ast/src/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit db731e4

Please sign in to comment.