We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9bcf992 + 398e778 commit 8385d6bCopy full SHA for 8385d6b
compiler/rustc_errors/src/lib.rs
@@ -1447,7 +1447,7 @@ impl HandlerInner {
1447
self.flags.treat_err_as_bug.map(|c| c.get()).unwrap_or(0),
1448
) {
1449
(1, 1) => panic!("aborting due to `-Z treat-err-as-bug=1`"),
1450
- (0, _) | (1, _) => {}
+ (0 | 1, _) => {}
1451
(count, as_bug) => panic!(
1452
"aborting after {} errors due to `-Z treat-err-as-bug={}`",
1453
count, as_bug,
0 commit comments