Only compute specializes query if specialization is enabled in the crate of the specialized impl
This commit is contained in:
parent
1653a2d34a
commit
4b188d9d66
8 changed files with 39 additions and 37 deletions
|
@ -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" }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue