Rollup merge of #128387 - liigo:patch-14, r=tgross35

More detailed note to deprecate ONCE_INIT
This commit is contained in:
Matthias Krüger 2024-07-31 15:36:31 +02:00 committed by GitHub
commit 22dbf88744
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -70,7 +70,7 @@ pub(crate) enum ExclusiveState {
#[stable(feature = "rust1", since = "1.0.0")]
#[deprecated(
since = "1.38.0",
note = "the `new` function is now preferred",
note = "the `Once::new()` function is now preferred",
suggestion = "Once::new()"
)]
pub const ONCE_INIT: Once = Once::new();