@@ -39,8 +39,8 @@ pub enum TypeError<'tcx> {
3939 RegionsDoesNotOutlive ( & ' tcx Region , & ' tcx Region ) ,
4040 RegionsNotSame ( & ' tcx Region , & ' tcx Region ) ,
4141 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 > > ) ,
4444 Sorts ( ExpectedFound < Ty < ' tcx > > ) ,
4545 IntMismatch ( ExpectedFound < ty:: IntVarValue > ) ,
4646 FloatMismatch ( ExpectedFound < ast:: FloatTy > ) ,
@@ -116,11 +116,11 @@ impl<'tcx> fmt::Display for TypeError<'tcx> {
116116 RegionsNoOverlap ( ..) => {
117117 write ! ( f, "lifetimes do not intersect" )
118118 }
119- RegionsInsufficientlyPolymorphic ( br, _) => {
119+ RegionsInsufficientlyPolymorphic ( br, _, _ ) => {
120120 write ! ( f, "expected bound lifetime parameter {}, \
121121 found concrete lifetime", br)
122122 }
123- RegionsOverlyPolymorphic ( br, _) => {
123+ RegionsOverlyPolymorphic ( br, _, _ ) => {
124124 write ! ( f, "expected concrete lifetime, \
125125 found bound lifetime parameter {}", br)
126126 }
@@ -253,15 +253,15 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
253253 self . note_and_explain_region ( db, "...does not overlap " ,
254254 region2, "" ) ;
255255 }
256- RegionsInsufficientlyPolymorphic ( _, conc_region) => {
256+ RegionsInsufficientlyPolymorphic ( _, conc_region, _ ) => {
257257 self . note_and_explain_region ( db, "concrete lifetime that was found is " ,
258258 conc_region, "" ) ;
259259 }
260- RegionsOverlyPolymorphic ( _, & ty:: ReVar ( _) ) => {
260+ RegionsOverlyPolymorphic ( _, & ty:: ReVar ( _) , _ ) => {
261261 // don't bother to print out the message below for
262262 // inference variables, it's not very illuminating.
263263 }
264- RegionsOverlyPolymorphic ( _, conc_region) => {
264+ RegionsOverlyPolymorphic ( _, conc_region, _ ) => {
265265 self . note_and_explain_region ( db, "expected concrete lifetime is " ,
266266 conc_region, "" ) ;
267267 }
0 commit comments