Skip to content

Commit

Permalink
Rollup merge of rust-lang#98695 - tshepang:or-pattern, r=compiler-errors
Browse files Browse the repository at this point in the history
use "or pattern"
  • Loading branch information
Dylan-DPC authored Jun 30, 2022
2 parents 82f5bb9 + 398e778 commit db4dd51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_errors/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1447,7 +1447,7 @@ impl HandlerInner {
self.flags.treat_err_as_bug.map(|c| c.get()).unwrap_or(0),
) {
(1, 1) => panic!("aborting due to `-Z treat-err-as-bug=1`"),
(0, _) | (1, _) => {}
(0 | 1, _) => {}
(count, as_bug) => panic!(
"aborting after {} errors due to `-Z treat-err-as-bug={}`",
count, as_bug,
Expand Down

0 comments on commit db4dd51

Please sign in to comment.