diff options
| author | Nadrieril <nadrieril+git@gmail.com> | 2024-01-24 16:24:52 +0100 |
|---|---|---|
| committer | Nadrieril <nadrieril+git@gmail.com> | 2024-01-31 19:22:48 +0100 |
| commit | 400dc46a05f41ba1e1137f11073cec1951442668 (patch) | |
| tree | e94e1c637e0ce2b312376d24ccb1e3cfe253d702 /compiler/rustc_pattern_analysis/src/errors.rs | |
| parent | 11f32b73e0dc9287e305b5b9980d24aecdc8c17f (diff) | |
| download | rust-400dc46a05f41ba1e1137f11073cec1951442668.tar.gz rust-400dc46a05f41ba1e1137f11073cec1951442668.zip | |
Gracefully abort on type incompatibility
Since the only use of `TypeCx::bug` is in `Constructor::is_covered_by`, it is tempting to return `false` instead of `Err()`, but that would cause "non-exhaustive match" false positives.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
