@@ -1265,9 +1265,7 @@ declare_lint! {
12651265 /// * If the value can be computed at compile-time, consider using
12661266 /// const-compatible values (see [Constant Evaluation]).
12671267 /// * 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`].
12711269 /// * If you truly need a mutable global, consider using a [`static`],
12721270 /// which has a variety of options:
12731271 /// * Simple data types can be directly defined and mutated with an
@@ -1282,9 +1280,7 @@ declare_lint! {
12821280 /// [Constant Evaluation]: https://doc.rust-lang.org/reference/const_eval.html
12831281 /// [`static`]: https://doc.rust-lang.org/reference/items/static-items.html
12841282 /// [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
12881284 /// [`atomic`]: https://doc.rust-lang.org/std/sync/atomic/index.html
12891285 /// [`Mutex`]: https://doc.rust-lang.org/std/sync/struct.Mutex.html
12901286 pub CONST_ITEM_MUTATION ,
0 commit comments