Only compute specializes query if specialization is enabled in the crate of the specialized impl

This commit is contained in:
Michael Goulet 2024-06-07 15:58:05 -04:00
parent 1653a2d34a
commit 4b188d9d66
8 changed files with 39 additions and 37 deletions

View file

@ -1494,6 +1494,11 @@ rustc_queries! {
separate_provide_extern
}
query specialization_enabled_in(cnum: CrateNum) -> bool {
desc { "checking whether the crate enabled `specialization`/`min_specialization`" }
separate_provide_extern
}
query specializes(_: (DefId, DefId)) -> bool {
desc { "computing whether impls specialize one another" }
}