We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ed935e commit 6e4c3b1Copy full SHA for 6e4c3b1
library/std/src/panicking.rs
@@ -239,7 +239,7 @@ pub mod panic_count {
239
pub const ALWAYS_ABORT_FLAG: usize = 1 << (usize::BITS - 1);
240
241
// Panic count for the current thread.
242
- thread_local! { static LOCAL_PANIC_COUNT: Cell<usize> = Cell::new(0) }
+ thread_local! { static LOCAL_PANIC_COUNT: Cell<usize> = const { Cell::new(0) } }
243
244
// Sum of panic counts from all threads. The purpose of this is to have
245
// a fast path in `is_zero` (which is used by `panicking`). In any particular
0 commit comments