Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 2530274

Browse files
committed
correct comment
1 parent 0e06456 commit 2530274

11 files changed

+1
-993
lines changed

compiler/rustc_mir/src/transform/early_otherwise_branch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use std::{borrow::Cow, fmt::Debug};
2121
/// let y: Option<()>;
2222
/// let discriminant_x = // get discriminant of x
2323
/// let discriminant_y = // get discriminant of y
24-
/// if discriminant_x != discriminant_y {1} else {0}
24+
/// if discriminant_x != discriminant_y || discriminant_x == None {1} else {0}
2525
/// ```
2626
pub struct EarlyOtherwiseBranch;
2727

src/test/mir-opt/early_otherwise_branch.opt1.EarlyOtherwiseBranch.diff.32bit

Lines changed: 0 additions & 88 deletions
This file was deleted.

src/test/mir-opt/early_otherwise_branch.opt1.EarlyOtherwiseBranch.diff.64bit

Lines changed: 0 additions & 88 deletions
This file was deleted.

0 commit comments

Comments
 (0)