@@ -1265,9 +1265,7 @@ declare_lint! {
1265
1265
/// * If the value can be computed at compile-time, consider using
1266
1266
/// const-compatible values (see [Constant Evaluation]).
1267
1267
/// * For more complex single-initialization cases, consider using a
1268
- /// third-party crate, such as [`lazy_static`] or [`once_cell`].
1269
- /// * If you are using the [nightly channel], consider the new
1270
- /// [`lazy`] module in the standard library.
1268
+ /// [`std::sync::LazyLock`].
1271
1269
/// * If you truly need a mutable global, consider using a [`static`],
1272
1270
/// which has a variety of options:
1273
1271
/// * Simple data types can be directly defined and mutated with an
@@ -1282,9 +1280,7 @@ declare_lint! {
1282
1280
/// [Constant Evaluation]: https://doc.rust-lang.org/reference/const_eval.html
1283
1281
/// [`static`]: https://doc.rust-lang.org/reference/items/static-items.html
1284
1282
/// [mutable `static`]: https://doc.rust-lang.org/reference/items/static-items.html#mutable-statics
1285
- /// [`lazy`]: https://doc.rust-lang.org/nightly/std/lazy/index.html
1286
- /// [`lazy_static`]: https://crates.io/crates/lazy_static
1287
- /// [`once_cell`]: https://crates.io/crates/once_cell
1283
+ /// [`std::sync::LazyLock`]: https://doc.rust-lang.org/stable/std/sync/struct.LazyLock.html
1288
1284
/// [`atomic`]: https://doc.rust-lang.org/std/sync/atomic/index.html
1289
1285
/// [`Mutex`]: https://doc.rust-lang.org/std/sync/struct.Mutex.html
1290
1286
pub CONST_ITEM_MUTATION ,
0 commit comments