1
Fork 0

Work around issue 106930.

This commit is contained in:
Mara Bos 2023-01-24 16:44:00 +01:00
parent 7b077307fd
commit db731e42b3

View 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 {