We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bd6b336 + fa1e35c commit ce335f1Copy full SHA for ce335f1
library/std/src/sys/pal/common/thread_local/fast_local.rs
@@ -94,7 +94,8 @@ pub macro thread_local_inner {
94
if let $crate::option::Option::Some(init) = init {
95
if let $crate::option::Option::Some(value) = init.take() {
96
return value;
97
- } else if $crate::cfg!(debug_assertions) {
+ }
98
+ if $crate::cfg!(debug_assertions) {
99
$crate::unreachable!("missing default value");
100
}
101
0 commit comments