Skip to content

Commit 12c1ac0

Browse files
authored
Rollup merge of #100907 - Nilstrieb:unrachable-typo-lol, r=Dylan-DPC
Fix typo in UnreachableProp r? ``@Dylan-DPC``
2 parents fd93ab4 + 8e6c5ad commit 12c1ac0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir_transform/src/unreachable_prop.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ where
8484
TerminatorKind::Unreachable
8585
} else if is_unreachable(otherwise) {
8686
// If there are multiple targets, don't delete unreachable branches (like an unreachable otherwise)
87-
// unless otherwise is unrachable, in which case deleting a normal branch causes it to be merged with
87+
// unless otherwise is unreachable, in which case deleting a normal branch causes it to be merged with
8888
// the otherwise, keeping its unreachable.
8989
// This looses information about reachability causing worse codegen.
9090
// For example (see src/test/codegen/match-optimizes-away.rs)

0 commit comments

Comments
 (0)