Add OnceCell<T>: !Sync
impl for diagnostics
This commit is contained in:
parent
19423b5944
commit
e1f630f23d
1 changed files with 4 additions and 0 deletions
|
@ -298,3 +298,7 @@ impl<T> const From<T> for OnceCell<T> {
|
|||
OnceCell { inner: UnsafeCell::new(Some(value)) }
|
||||
}
|
||||
}
|
||||
|
||||
// Just like for `Cell<T>` this isn't needed, but results in nicer error messages.
|
||||
#[unstable(feature = "once_cell", issue = "74465")]
|
||||
impl<T> !Sync for OnceCell<T> {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue