Bail out of MIR construction if check_match
fails
This commit is contained in:
parent
c1bb0e0911
commit
2d5ca0ea4f
5 changed files with 154 additions and 13 deletions
|
@ -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 }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue