Skip to content

Commit

Permalink
Rollup merge of rust-lang#100907 - Nilstrieb:unrachable-typo-lol, r=D…
Browse files Browse the repository at this point in the history
…ylan-DPC

Fix typo in UnreachableProp

r? `@Dylan-DPC`
  • Loading branch information
Dylan-DPC authored Aug 23, 2022
2 parents 6a4fe5c + 8e6c5ad commit 2f16550
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 2f16550

Please sign in to comment.