@@ -34,9 +34,9 @@ use crate::infer::InferCtxt;
34
34
use crate :: infer:: { TypeVariableOrigin , TypeVariableOriginKind } ;
35
35
use crate :: traits:: { Obligation , PredicateObligations } ;
36
36
37
- pub struct TypeRelating < ' me , ' tcx , D >
37
+ pub struct NllTypeRelating < ' me , ' tcx , D >
38
38
where
39
- D : TypeRelatingDelegate < ' tcx > ,
39
+ D : NllTypeRelatingDelegate < ' tcx > ,
40
40
{
41
41
infcx : & ' me InferCtxt < ' tcx > ,
42
42
54
54
ambient_variance_info : ty:: VarianceDiagInfo < ' tcx > ,
55
55
}
56
56
57
- pub trait TypeRelatingDelegate < ' tcx > {
57
+ pub trait NllTypeRelatingDelegate < ' tcx > {
58
58
fn param_env ( & self ) -> ty:: ParamEnv < ' tcx > ;
59
59
fn span ( & self ) -> Span ;
60
60
@@ -98,9 +98,9 @@ pub trait TypeRelatingDelegate<'tcx> {
98
98
fn next_placeholder_region ( & mut self , placeholder : ty:: PlaceholderRegion ) -> ty:: Region < ' tcx > ;
99
99
}
100
100
101
- impl < ' me , ' tcx , D > TypeRelating < ' me , ' tcx , D >
101
+ impl < ' me , ' tcx , D > NllTypeRelating < ' me , ' tcx , D >
102
102
where
103
- D : TypeRelatingDelegate < ' tcx > ,
103
+ D : NllTypeRelatingDelegate < ' tcx > ,
104
104
{
105
105
pub fn new ( infcx : & ' me InferCtxt < ' tcx > , delegate : D , ambient_variance : ty:: Variance ) -> Self {
106
106
Self {
@@ -273,9 +273,9 @@ where
273
273
}
274
274
}
275
275
276
- impl < ' tcx , D > TypeRelation < ' tcx > for TypeRelating < ' _ , ' tcx , D >
276
+ impl < ' tcx , D > TypeRelation < ' tcx > for NllTypeRelating < ' _ , ' tcx , D >
277
277
where
278
- D : TypeRelatingDelegate < ' tcx > ,
278
+ D : NllTypeRelatingDelegate < ' tcx > ,
279
279
{
280
280
fn tcx ( & self ) -> TyCtxt < ' tcx > {
281
281
self . infcx . tcx
@@ -514,9 +514,9 @@ where
514
514
}
515
515
}
516
516
517
- impl < ' tcx , D > ObligationEmittingRelation < ' tcx > for TypeRelating < ' _ , ' tcx , D >
517
+ impl < ' tcx , D > ObligationEmittingRelation < ' tcx > for NllTypeRelating < ' _ , ' tcx , D >
518
518
where
519
- D : TypeRelatingDelegate < ' tcx > ,
519
+ D : NllTypeRelatingDelegate < ' tcx > ,
520
520
{
521
521
fn span ( & self ) -> Span {
522
522
self . delegate . span ( )
0 commit comments