1
1
use rustc_errors:: ErrorGuaranteed ;
2
- use rustc_infer:: infer:: nll_relate:: { TypeRelating , TypeRelatingDelegate } ;
2
+ use rustc_infer:: infer:: nll_relate:: { NllTypeRelating , NllTypeRelatingDelegate } ;
3
3
use rustc_infer:: infer:: NllRegionVariableOrigin ;
4
4
use rustc_infer:: traits:: PredicateObligations ;
5
5
use rustc_middle:: mir:: ConstraintCategory ;
@@ -32,9 +32,9 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
32
32
locations : Locations ,
33
33
category : ConstraintCategory < ' tcx > ,
34
34
) -> Result < ( ) , NoSolution > {
35
- TypeRelating :: new (
35
+ NllTypeRelating :: new (
36
36
self . infcx ,
37
- NllTypeRelatingDelegate :: new ( self , locations, category, UniverseInfo :: relate ( a, b) ) ,
37
+ NllNllTypeRelatingDelegate :: new ( self , locations, category, UniverseInfo :: relate ( a, b) ) ,
38
38
v,
39
39
)
40
40
. relate ( a, b) ?;
@@ -49,17 +49,17 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
49
49
locations : Locations ,
50
50
category : ConstraintCategory < ' tcx > ,
51
51
) -> Result < ( ) , NoSolution > {
52
- TypeRelating :: new (
52
+ NllTypeRelating :: new (
53
53
self . infcx ,
54
- NllTypeRelatingDelegate :: new ( self , locations, category, UniverseInfo :: other ( ) ) ,
54
+ NllNllTypeRelatingDelegate :: new ( self , locations, category, UniverseInfo :: other ( ) ) ,
55
55
ty:: Variance :: Invariant ,
56
56
)
57
57
. relate ( a, b) ?;
58
58
Ok ( ( ) )
59
59
}
60
60
}
61
61
62
- struct NllTypeRelatingDelegate < ' me , ' bccx , ' tcx > {
62
+ struct NllNllTypeRelatingDelegate < ' me , ' bccx , ' tcx > {
63
63
type_checker : & ' me mut TypeChecker < ' bccx , ' tcx > ,
64
64
65
65
/// Where (and why) is this relation taking place?
@@ -73,7 +73,7 @@ struct NllTypeRelatingDelegate<'me, 'bccx, 'tcx> {
73
73
universe_info : UniverseInfo < ' tcx > ,
74
74
}
75
75
76
- impl < ' me , ' bccx , ' tcx > NllTypeRelatingDelegate < ' me , ' bccx , ' tcx > {
76
+ impl < ' me , ' bccx , ' tcx > NllNllTypeRelatingDelegate < ' me , ' bccx , ' tcx > {
77
77
fn new (
78
78
type_checker : & ' me mut TypeChecker < ' bccx , ' tcx > ,
79
79
locations : Locations ,
@@ -84,7 +84,7 @@ impl<'me, 'bccx, 'tcx> NllTypeRelatingDelegate<'me, 'bccx, 'tcx> {
84
84
}
85
85
}
86
86
87
- impl < ' tcx > TypeRelatingDelegate < ' tcx > for NllTypeRelatingDelegate < ' _ , ' _ , ' tcx > {
87
+ impl < ' tcx > NllTypeRelatingDelegate < ' tcx > for NllNllTypeRelatingDelegate < ' _ , ' _ , ' tcx > {
88
88
fn span ( & self ) -> Span {
89
89
self . locations . span ( self . type_checker . body )
90
90
}
0 commit comments