1
Fork 0

Bail out of MIR construction if check_match fails

This commit is contained in:
clubby789 2023-04-30 16:31:36 +01:00
parent c1bb0e0911
commit 2d5ca0ea4f
5 changed files with 154 additions and 13 deletions

View file

@ -1022,7 +1022,7 @@ rustc_queries! {
desc { "converting literal to mir constant" }
}
query check_match(key: LocalDefId) {
query check_match(key: LocalDefId) -> Result<(), rustc_errors::ErrorGuaranteed> {
desc { |tcx| "match-checking `{}`", tcx.def_path_str(key) }
cache_on_disk_if { true }
}