Skip to content

Commit a10d157

Browse files
committed
Addition of parentheses to clarify precedence
1 parent df33e02 commit a10d157

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir_transform/src/unreachable_enum_branching.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ impl<'tcx> MirPass<'tcx> for UnreachableEnumBranching {
177177
&& allowed_variants.len() == 1
178178
&& check_successors(&body.basic_blocks, targets.otherwise());
179179
let replace_otherwise_to_unreachable = otherwise_is_last_variant
180-
|| !otherwise_is_empty_unreachable && allowed_variants.is_empty();
180+
|| (!otherwise_is_empty_unreachable && allowed_variants.is_empty());
181181

182182
if unreachable_targets.is_empty() && !replace_otherwise_to_unreachable {
183183
continue;

0 commit comments

Comments
 (0)