diff options
| author | Aman Arora <me@aman-arora.com> | 2021-07-06 05:38:15 -0400 |
|---|---|---|
| committer | Aman Arora <me@aman-arora.com> | 2021-07-06 14:38:10 -0400 |
| commit | 8ef5212effdd5c5b904e51e68fc99c71fb87a1e9 (patch) | |
| tree | 6fbbbcf26fc0fe81791dd1efeb719cba181ffb3d /compiler/rustc_middle/src/query | |
| parent | 969a6c2481c41cea793708f7fdd2f96a3397143f (diff) | |
| download | rust-8ef5212effdd5c5b904e51e68fc99c71fb87a1e9.tar.gz rust-8ef5212effdd5c5b904e51e68fc99c71fb87a1e9.zip | |
Make type_implements_trait not a query
Diffstat (limited to 'compiler/rustc_middle/src/query')
| -rw-r--r-- | compiler/rustc_middle/src/query/mod.rs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs index 6f0f180b427..4d643c09e54 100644 --- a/compiler/rustc_middle/src/query/mod.rs +++ b/compiler/rustc_middle/src/query/mod.rs @@ -1559,25 +1559,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> |
