about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src
diff options
context:
space:
mode:
authorNadrieril <nadrieril+git@gmail.com>2024-01-24 16:24:52 +0100
committerNadrieril <nadrieril+git@gmail.com>2024-01-31 19:22:48 +0100
commit400dc46a05f41ba1e1137f11073cec1951442668 (patch)
treee94e1c637e0ce2b312376d24ccb1e3cfe253d702 /compiler/rustc_hir_analysis/src
parent11f32b73e0dc9287e305b5b9980d24aecdc8c17f (diff)
downloadrust-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_hir_analysis/src')
0 files changed, 0 insertions, 0 deletions