Skip to content

Commit 8385d6b

Browse files
authored
Rollup merge of #98695 - tshepang:or-pattern, r=compiler-errors
use "or pattern"
2 parents 9bcf992 + 398e778 commit 8385d6b

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_errors/src

1 file changed

+1
-1
lines changed

compiler/rustc_errors/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,7 @@ impl HandlerInner {
14471447
self.flags.treat_err_as_bug.map(|c| c.get()).unwrap_or(0),
14481448
) {
14491449
(1, 1) => panic!("aborting due to `-Z treat-err-as-bug=1`"),
1450-
(0, _) | (1, _) => {}
1450+
(0 | 1, _) => {}
14511451
(count, as_bug) => panic!(
14521452
"aborting after {} errors due to `-Z treat-err-as-bug={}`",
14531453
count, as_bug,

0 commit comments

Comments
 (0)