Auto merge of #86901 - sexxi-goose:query_remove, r=nikomatsakis
Make type_implements_trait not a query r? `@nikomatsakis`
This commit is contained in:
commit
c0bd5a584d
11 changed files with 142 additions and 108 deletions
|
@ -1555,25 +1555,6 @@ rustc_queries! {
|
|||
desc { "evaluating trait selection obligation `{}`", goal.value }
|
||||
}
|
||||
|
||||
/// Evaluates whether the given type implements the given trait
|
||||
/// in the given environment.
|
||||
///
|
||||
/// The inputs are:
|
||||
///
|
||||
/// - the def-id of the trait
|
||||
/// - the self type
|
||||
/// - the *other* type parameters of the trait, excluding the self-type
|
||||
/// - the parameter environment
|
||||
///
|
||||
/// FIXME. If the type, trait, or environment has inference variables,
|
||||
/// this yields `EvaluatedToUnknown`. It should be refactored
|
||||
/// to use canonicalization, really.
|
||||
query type_implements_trait(
|
||||
key: (DefId, Ty<'tcx>, SubstsRef<'tcx>, ty::ParamEnv<'tcx>, )
|
||||
) -> traits::EvaluationResult {
|
||||
desc { "evaluating `type_implements_trait` `{:?}`", key }
|
||||
}
|
||||
|
||||
/// Do not call this query directly: part of the `Eq` type-op
|
||||
query type_op_ascribe_user_type(
|
||||
goal: CanonicalTypeOpAscribeUserTypeGoal<'tcx>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue