Function rustc_query_impl::make_query::type_implements_trait [−][src]
pub fn type_implements_trait<'tcx>(
tcx: QueryCtxt<'tcx>,
key: type_implements_trait<'tcx>
) -> QueryStackFrame
Expand description
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.