Skip to content

Commit

Permalink
Rollup merge of #100907 - Nilstrieb:unrachable-typo-lol, r=Dylan-DPC
Browse files Browse the repository at this point in the history
Fix typo in UnreachableProp

r? ``@Dylan-DPC``
  • Loading branch information
Dylan-DPC committed Aug 23, 2022
2 parents fd93ab4 + 8e6c5ad commit 12c1ac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_mir_transform/src/unreachable_prop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ where
TerminatorKind::Unreachable
} else if is_unreachable(otherwise) {
// If there are multiple targets, don't delete unreachable branches (like an unreachable otherwise)
// unless otherwise is unrachable, in which case deleting a normal branch causes it to be merged with
// unless otherwise is unreachable, in which case deleting a normal branch causes it to be merged with
// the otherwise, keeping its unreachable.
// This looses information about reachability causing worse codegen.
// For example (see src/test/codegen/match-optimizes-away.rs)
Expand Down

0 comments on commit 12c1ac0

Please sign in to comment.