@@ -39,8 +39,8 @@ pub enum TypeError<'tcx> {
39
39
RegionsDoesNotOutlive ( & ' tcx Region , & ' tcx Region ) ,
40
40
RegionsNotSame ( & ' tcx Region , & ' tcx Region ) ,
41
41
RegionsNoOverlap ( & ' tcx Region , & ' tcx Region ) ,
42
- RegionsInsufficientlyPolymorphic ( BoundRegion , & ' tcx Region ) ,
43
- RegionsOverlyPolymorphic ( BoundRegion , & ' tcx Region ) ,
42
+ RegionsInsufficientlyPolymorphic ( BoundRegion , & ' tcx Region , Option < Box < ty :: Issue32330 > > ) ,
43
+ RegionsOverlyPolymorphic ( BoundRegion , & ' tcx Region , Option < Box < ty :: Issue32330 > > ) ,
44
44
Sorts ( ExpectedFound < Ty < ' tcx > > ) ,
45
45
IntMismatch ( ExpectedFound < ty:: IntVarValue > ) ,
46
46
FloatMismatch ( ExpectedFound < ast:: FloatTy > ) ,
@@ -116,11 +116,11 @@ impl<'tcx> fmt::Display for TypeError<'tcx> {
116
116
RegionsNoOverlap ( ..) => {
117
117
write ! ( f, "lifetimes do not intersect" )
118
118
}
119
- RegionsInsufficientlyPolymorphic ( br, _) => {
119
+ RegionsInsufficientlyPolymorphic ( br, _, _ ) => {
120
120
write ! ( f, "expected bound lifetime parameter {}, \
121
121
found concrete lifetime", br)
122
122
}
123
- RegionsOverlyPolymorphic ( br, _) => {
123
+ RegionsOverlyPolymorphic ( br, _, _ ) => {
124
124
write ! ( f, "expected concrete lifetime, \
125
125
found bound lifetime parameter {}", br)
126
126
}
@@ -253,15 +253,15 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
253
253
self . note_and_explain_region ( db, "...does not overlap " ,
254
254
region2, "" ) ;
255
255
}
256
- RegionsInsufficientlyPolymorphic ( _, conc_region) => {
256
+ RegionsInsufficientlyPolymorphic ( _, conc_region, _ ) => {
257
257
self . note_and_explain_region ( db, "concrete lifetime that was found is " ,
258
258
conc_region, "" ) ;
259
259
}
260
- RegionsOverlyPolymorphic ( _, & ty:: ReVar ( _) ) => {
260
+ RegionsOverlyPolymorphic ( _, & ty:: ReVar ( _) , _ ) => {
261
261
// don't bother to print out the message below for
262
262
// inference variables, it's not very illuminating.
263
263
}
264
- RegionsOverlyPolymorphic ( _, conc_region) => {
264
+ RegionsOverlyPolymorphic ( _, conc_region, _ ) => {
265
265
self . note_and_explain_region ( db, "expected concrete lifetime is " ,
266
266
conc_region, "" ) ;
267
267
}
0 commit comments