@@ -357,23 +357,23 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
357
357
& self ,
358
358
error : & mut traits:: FulfillmentError < ' tcx > ,
359
359
def_id : DefId ,
360
- param : ty:: GenericArg < ' tcx > ,
360
+ arg : ty:: GenericArg < ' tcx > ,
361
361
qpath : & hir:: QPath < ' tcx > ,
362
362
) -> bool {
363
363
match qpath {
364
364
hir:: QPath :: Resolved ( self_ty, path) => {
365
365
for segment in path. segments . iter ( ) . rev ( ) {
366
366
if let Res :: Def ( kind, def_id) = segment. res
367
367
&& !matches ! ( kind, DefKind :: Mod | DefKind :: ForeignMod )
368
- && self . point_at_generic_if_possible ( error, def_id, param , segment)
368
+ && self . point_at_generic_if_possible ( error, def_id, arg , segment)
369
369
{
370
370
return true ;
371
371
}
372
372
}
373
373
// Handle `Self` param specifically, since it's separated in
374
374
// the path representation
375
375
if let Some ( self_ty) = self_ty
376
- && let ty:: GenericArgKind :: Type ( ty) = param . kind ( )
376
+ && let ty:: GenericArgKind :: Type ( ty) = arg . kind ( )
377
377
&& ty == self . tcx . types . self_param
378
378
{
379
379
error. obligation . cause . span = self_ty
@@ -384,12 +384,12 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
384
384
}
385
385
}
386
386
hir:: QPath :: TypeRelative ( self_ty, segment) => {
387
- if self . point_at_generic_if_possible ( error, def_id, param , segment) {
387
+ if self . point_at_generic_if_possible ( error, def_id, arg , segment) {
388
388
return true ;
389
389
}
390
390
// Handle `Self` param specifically, since it's separated in
391
391
// the path representation
392
- if let ty:: GenericArgKind :: Type ( ty) = param . kind ( )
392
+ if let ty:: GenericArgKind :: Type ( ty) = arg . kind ( )
393
393
&& ty == self . tcx . types . self_param
394
394
{
395
395
error. obligation . cause . span = self_ty
0 commit comments