Get rid of predicates_defined_on
This commit is contained in:
parent
f167efad2f
commit
dbf06d2170
5 changed files with 22 additions and 63 deletions
|
@ -312,17 +312,6 @@ rustc_queries! {
|
|||
/// predicates (where-clauses) that must be proven true in order
|
||||
/// to reference it. This is almost always the "predicates query"
|
||||
/// that you want.
|
||||
///
|
||||
/// `predicates_of` builds on `predicates_defined_on` -- in fact,
|
||||
/// it is almost always the same as that query, except for the
|
||||
/// case of traits. For traits, `predicates_of` contains
|
||||
/// an additional `Self: Trait<...>` predicate that users don't
|
||||
/// actually write. This reflects the fact that to invoke the
|
||||
/// trait (e.g., via `Default::default`) you must supply types
|
||||
/// that actually implement the trait. (However, this extra
|
||||
/// predicate gets in the way of some checks, which are intended
|
||||
/// to operate over only the actual where-clauses written by the
|
||||
/// user.)
|
||||
query predicates_of(key: DefId) -> ty::GenericPredicates<'tcx> {
|
||||
desc { |tcx| "computing predicates of `{}`", tcx.def_path_str(key) }
|
||||
cache_on_disk_if { key.is_local() }
|
||||
|
@ -617,14 +606,6 @@ rustc_queries! {
|
|||
desc { "getting wasm import module map" }
|
||||
}
|
||||
|
||||
/// Maps from the `DefId` of an item (trait/struct/enum/fn) to the
|
||||
/// predicates (where-clauses) directly defined on it. This is
|
||||
/// equal to the `explicit_predicates_of` predicates plus the
|
||||
/// `inferred_outlives_of` predicates.
|
||||
query predicates_defined_on(key: DefId) -> ty::GenericPredicates<'tcx> {
|
||||
desc { |tcx| "computing predicates of `{}`", tcx.def_path_str(key) }
|
||||
}
|
||||
|
||||
/// Returns everything that looks like a predicate written explicitly
|
||||
/// by the user on a trait item.
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue