Make crate_inherent_impls_overlap_check bubble up its errors

This commit is contained in:
Oli Scherer 2024-01-12 08:57:07 +00:00
parent b1ce8a4ecd
commit 49347ee12d
3 changed files with 31 additions and 20 deletions

View file

@ -1019,8 +1019,9 @@ rustc_queries! {
/// Checks all types in the crate for overlap in their inherent impls. Reports errors.
/// Not meant to be used directly outside of coherence.
query crate_inherent_impls_overlap_check(_: ()) -> () {
query crate_inherent_impls_overlap_check(_: ()) -> Result<(), ErrorGuaranteed> {
desc { "check for overlap between inherent impls defined in this crate" }
ensure_forwards_result_if_red
}
/// Checks whether all impls in the crate pass the overlap check, returning