Rollup merge of #128387 - liigo:patch-14, r=tgross35
More detailed note to deprecate ONCE_INIT
This commit is contained in:
commit
22dbf88744
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ pub(crate) enum ExclusiveState {
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
since = "1.38.0",
|
since = "1.38.0",
|
||||||
note = "the `new` function is now preferred",
|
note = "the `Once::new()` function is now preferred",
|
||||||
suggestion = "Once::new()"
|
suggestion = "Once::new()"
|
||||||
)]
|
)]
|
||||||
pub const ONCE_INIT: Once = Once::new();
|
pub const ONCE_INIT: Once = Once::new();
|
||||||
|
|
Loading…
Add table
Reference in a new issue