granite-rust/compiler/rustc_pattern_analysis
bors f067fd6084 Auto merge of #120313 - Nadrieril:graceful-error, r=compiler-errors
pattern_analysis: Gracefully abort on type incompatibility

This leaves the option for a consumer of the crate to return `Err` instead of panicking on type error. rust-analyzer could use that (e.g. https://github.com/rust-lang/rust-analyzer/issues/15808).

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.

r? `@compiler-errors`
2024-02-05 21:36:25 +00:00
..
src Auto merge of #120313 - Nadrieril:graceful-error, r=compiler-errors 2024-02-05 21:36:25 +00:00
Cargo.toml Stop using derivative in rustc_pattern_analysis 2024-01-27 14:21:01 +02:00
messages.ftl Extract exhaustiveness into its own crate 2023-12-11 11:20:55 +01:00