- let initialized = if let InitializationRequiringAction::PartialAssignment = desired_action {
- // The same error is emitted for bindings that are *sometimes* initialized and the ones
- // that are *partially* initialized by assigning to a field of an uninitialized
- // binding. We differentiate between them for more accurate wording here.
- "fully initialized"
- } else if spans.iter().filter(|i| !i.contains(span)).count() == 0 {
- // We filter above to avoid misleading wording in cases like:
- // ```
- // let x;
- // x += 1;
- // ```
- "initialized"
- } else {
- "initialized in all conditions"
- };
+ let isnt_initialized =
+ if let InitializationRequiringAction::PartialAssignment = desired_action {
+ // The same error is emitted for bindings that are *sometimes* initialized and the ones
+ // that are *partially* initialized by assigning to a field of an uninitialized
+ // binding. We differentiate between them for more accurate wording here.
+ "isn't fully initialized"
+ } else if spans.iter().filter(|i| !i.contains(span)).count() == 0 {
+ // We filter above to avoid misleading wording in cases like the following, where `x`
+ // has an `init`, but it is in the same place we're looking at:
+ // ```
+ // let x;
+ // x += 1;
+ // ```
+ "isn't initialized"
+ } else {
+ "is possibly-uninitialized"
+ };