You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: compiler/rustc_const_eval/src/check_consts/ops.rs
+1-1
Original file line number
Diff line number
Diff line change
@@ -309,7 +309,7 @@ impl<'tcx> NonConstOp<'tcx> for FnCallNonConst<'tcx> {
309
309
}
310
310
311
311
ifletConstContext::Static(_) = ccx.const_kind(){
312
-
err.note("consider wrapping this expression in `Lazy::new(|| ...)` from the `once_cell` crate: https://crates.io/crates/once_cell");
312
+
err.note("consider wrapping this expression in `std::sync::LazyLock::new(|| ...)`");
Copy file name to clipboardexpand all lines: src/tools/clippy/tests/dogfood.rs
-1
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,6 @@
3
3
//!
4
4
//! See [Eating your own dog food](https://en.wikipedia.org/wiki/Eating_your_own_dog_food) for context
= note: calls in statics are limited to constant functions, tuple structs and tuple variants
17
-
= note: consider wrapping this expression in `Lazy::new(|| ...)` from the `once_cell` crate: https://crates.io/crates/once_cell
17
+
= note: consider wrapping this expression in `std::sync::LazyLock::new(|| ...)`
18
18
= note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
19
19
20
20
error[E0507]: cannot move out of static item `settings_dir`
= note: calls in statics are limited to constant functions, tuple structs and tuple variants
8
-
= note: consider wrapping this expression in `Lazy::new(|| ...)` from the `once_cell` crate: https://crates.io/crates/once_cell
8
+
= note: consider wrapping this expression in `std::sync::LazyLock::new(|| ...)`
9
9
10
10
error[E0133]: dereference of raw pointer is unsafe and requires unsafe function or block
0 commit comments