about summary refs log tree commit diff
path: root/compiler/rustc_errors
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-06-30 19:55:55 +0200
committerGitHub <noreply@github.com>2022-06-30 19:55:55 +0200
commit8385d6bee47a839f094e63ff50ea272bb7f209bb (patch)
tree51784ee5827a101c4f6316e3c1f4928064a4c5d1 /compiler/rustc_errors
parent9bcf99249930c8738451e8a1cd7c753b352c6e91 (diff)
parent398e7784dd31d02ef89f3ea19af0becac20799c0 (diff)
downloadrust-8385d6bee47a839f094e63ff50ea272bb7f209bb.tar.gz
rust-8385d6bee47a839f094e63ff50ea272bb7f209bb.zip
Rollup merge of #98695 - tshepang:or-pattern, r=compiler-errors
use "or pattern"
Diffstat (limited to 'compiler/rustc_errors')
-rw-r--r--compiler/rustc_errors/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs
index 78b0892b3bc..9c42f6f26fc 100644
--- a/compiler/rustc_errors/src/lib.rs
+++ b/compiler/rustc_errors/src/lib.rs
@@ -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,