We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbc45b6 commit 5daac46Copy full SHA for 5daac46
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