Work around issue 106930.
This commit is contained in:
@@ -67,6 +67,12 @@ pub struct FormatArguments {
|
|||||||
names: FxHashMap<Symbol, usize>,
|
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 {
|
impl FormatArguments {
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
Self {
|
Self {
|
||||||
|
|||||||
Reference in New Issue
Block a user