diff options
| author | Tshepang Mbambo <tshepang@gmail.com> | 2022-06-30 03:05:51 +0200 |
|---|---|---|
| committer | Tshepang Mbambo <tshepang@gmail.com> | 2022-06-30 03:05:51 +0200 |
| commit | 398e7784dd31d02ef89f3ea19af0becac20799c0 (patch) | |
| tree | ca252a70256420a6a60e6315d425ed1ec8e4cf35 /compiler/rustc_errors/src/lib.rs | |
| parent | 126e3df4065623802eda752e79839d1b6fde59be (diff) | |
| download | rust-398e7784dd31d02ef89f3ea19af0becac20799c0.tar.gz rust-398e7784dd31d02ef89f3ea19af0becac20799c0.zip | |
use "or pattern"
Diffstat (limited to 'compiler/rustc_errors/src/lib.rs')
| -rw-r--r-- | compiler/rustc_errors/src/lib.rs | 2 |
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, |
