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
If you really want global mutable state, try using an interior mutable `static` or a `static mut`.
250
235
251
236
const_eval_nested_static_in_thread_local = #[thread_local] does not support implicit nested statics, please create explicit static items and refer to them instead
237
+
238
+
const_eval_non_const_await =
239
+
cannot convert `{$ty}` into a future in {const_eval_const_context}s
240
+
241
+
const_eval_non_const_closure =
242
+
cannot call {$non}-const closure in {const_eval_const_context}s
243
+
244
+
const_eval_non_const_deref_coercion =
245
+
cannot perform {$non}-const deref coercion on `{$ty}` in {const_eval_const_context}s
246
+
.note = attempting to deref into `{$target_ty}`
247
+
.target_note = deref defined here
248
+
252
249
const_eval_non_const_fmt_macro_call =
253
-
cannot call non-const formatting macro in {const_eval_const_context}s
250
+
cannot call {$non}-const formatting macro in {const_eval_const_context}s
254
251
255
252
const_eval_non_const_fn_call =
256
-
cannot call non-const {$def_descr} `{$def_path_str}` in {const_eval_const_context}s
253
+
cannot call {$non}-const {$def_descr} `{$def_path_str}` in {const_eval_const_context}s
254
+
255
+
const_eval_non_const_for_loop_into_iter =
256
+
cannot use `for` loop on `{$ty}` in {const_eval_const_context}s
257
257
258
258
const_eval_non_const_impl =
259
259
impl defined here, but it is not `const`
260
260
261
261
const_eval_non_const_intrinsic =
262
-
cannot call non-const intrinsic `{$name}` in {const_eval_const_context}s
262
+
cannot call {$non}-const intrinsic `{$name}` in {const_eval_const_context}s
263
+
264
+
const_eval_non_const_match_eq = cannot match on `{$ty}` in {const_eval_const_context}s
265
+
.note = `{$ty}` cannot be compared in compile-time, and therefore cannot be used in `match`es
266
+
267
+
const_eval_non_const_operator =
268
+
cannot call {$non}-const operator in {const_eval_const_context}s
269
+
270
+
const_eval_non_const_question_branch =
271
+
`?` is not allowed on `{$ty}` in {const_eval_const_context}s
272
+
const_eval_non_const_question_from_residual =
273
+
`?` is not allowed on `{$ty}` in {const_eval_const_context}s
274
+
275
+
const_eval_non_const_try_block_from_output =
276
+
`try` block cannot convert `{$ty}` to the result in {const_eval_const_context}s
263
277
264
278
const_eval_not_enough_caller_args =
265
279
calling a function with fewer arguments than it requires
0 commit comments