@@ -10,18 +10,14 @@ use rustc_trait_selection::traits::query::normalize::QueryNormalizeExt;
10
10
use rustc_trait_selection:: traits:: query:: type_op:: ascribe_user_type:: {
11
11
type_op_ascribe_user_type_with_span, AscribeUserType ,
12
12
} ;
13
- use rustc_trait_selection:: traits:: query:: type_op:: eq:: Eq ;
14
13
use rustc_trait_selection:: traits:: query:: type_op:: normalize:: Normalize ;
15
14
use rustc_trait_selection:: traits:: query:: type_op:: prove_predicate:: ProvePredicate ;
16
- use rustc_trait_selection:: traits:: query:: type_op:: subtype:: Subtype ;
17
15
use rustc_trait_selection:: traits:: { Normalized , Obligation , ObligationCause , ObligationCtxt } ;
18
16
19
17
pub ( crate ) fn provide ( p : & mut Providers ) {
20
18
* p = Providers {
21
19
type_op_ascribe_user_type,
22
- type_op_eq,
23
20
type_op_prove_predicate,
24
- type_op_subtype,
25
21
type_op_normalize_ty,
26
22
type_op_normalize_clause,
27
23
type_op_normalize_fn_sig,
@@ -39,16 +35,6 @@ fn type_op_ascribe_user_type<'tcx>(
39
35
} )
40
36
}
41
37
42
- fn type_op_eq < ' tcx > (
43
- tcx : TyCtxt < ' tcx > ,
44
- canonicalized : Canonical < ' tcx , ParamEnvAnd < ' tcx , Eq < ' tcx > > > ,
45
- ) -> Result < & ' tcx Canonical < ' tcx , QueryResponse < ' tcx , ( ) > > , NoSolution > {
46
- tcx. infer_ctxt ( ) . enter_canonical_trait_query ( & canonicalized, |ocx, key| {
47
- let ( param_env, Eq { a, b } ) = key. into_parts ( ) ;
48
- Ok ( ocx. eq ( & ObligationCause :: dummy ( ) , param_env, a, b) ?)
49
- } )
50
- }
51
-
52
38
fn type_op_normalize < ' tcx , T > (
53
39
ocx : & ObligationCtxt < ' _ , ' tcx > ,
54
40
key : ParamEnvAnd < ' tcx , Normalize < T > > ,
@@ -91,16 +77,6 @@ fn type_op_normalize_poly_fn_sig<'tcx>(
91
77
tcx. infer_ctxt ( ) . enter_canonical_trait_query ( & canonicalized, type_op_normalize)
92
78
}
93
79
94
- fn type_op_subtype < ' tcx > (
95
- tcx : TyCtxt < ' tcx > ,
96
- canonicalized : Canonical < ' tcx , ParamEnvAnd < ' tcx , Subtype < ' tcx > > > ,
97
- ) -> Result < & ' tcx Canonical < ' tcx , QueryResponse < ' tcx , ( ) > > , NoSolution > {
98
- tcx. infer_ctxt ( ) . enter_canonical_trait_query ( & canonicalized, |ocx, key| {
99
- let ( param_env, Subtype { sub, sup } ) = key. into_parts ( ) ;
100
- Ok ( ocx. sup ( & ObligationCause :: dummy ( ) , param_env, sup, sub) ?)
101
- } )
102
- }
103
-
104
80
fn type_op_prove_predicate < ' tcx > (
105
81
tcx : TyCtxt < ' tcx > ,
106
82
canonicalized : Canonical < ' tcx , ParamEnvAnd < ' tcx , ProvePredicate < ' tcx > > > ,
0 commit comments