We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09064a2 commit cbc0a15Copy full SHA for cbc0a15
library/std/src/panicking.rs
@@ -325,7 +325,7 @@ pub mod panic_count {
325
pub const ALWAYS_ABORT_FLAG: usize = 1 << (usize::BITS - 1);
326
327
// Panic count for the current thread.
328
- thread_local! { static LOCAL_PANIC_COUNT: Cell<usize> = Cell::new(0) }
+ thread_local! { static LOCAL_PANIC_COUNT: Cell<usize> = const { Cell::new(0) } }
329
330
// Sum of panic counts from all threads. The purpose of this is to have
331
// a fast path in `is_zero` (which is used by `panicking`). In any particular
0 commit comments