Skip to content

Commit 8e6c5ad

Browse files
committed
Fix typo in UnreachableProp
1 parent 7e3e8a8 commit 8e6c5ad

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)