@@ -357,23 +357,23 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
357357 & self ,
358358 error : & mut traits:: FulfillmentError < ' tcx > ,
359359 def_id : DefId ,
360- param : ty:: GenericArg < ' tcx > ,
360+ arg : ty:: GenericArg < ' tcx > ,
361361 qpath : & hir:: QPath < ' tcx > ,
362362 ) -> bool {
363363 match qpath {
364364 hir:: QPath :: Resolved ( self_ty, path) => {
365365 for segment in path. segments . iter ( ) . rev ( ) {
366366 if let Res :: Def ( kind, def_id) = segment. res
367367 && !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)
369369 {
370370 return true ;
371371 }
372372 }
373373 // Handle `Self` param specifically, since it's separated in
374374 // the path representation
375375 if let Some ( self_ty) = self_ty
376- && let ty:: GenericArgKind :: Type ( ty) = param . kind ( )
376+ && let ty:: GenericArgKind :: Type ( ty) = arg . kind ( )
377377 && ty == self . tcx . types . self_param
378378 {
379379 error. obligation . cause . span = self_ty
@@ -384,12 +384,12 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
384384 }
385385 }
386386 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) {
388388 return true ;
389389 }
390390 // Handle `Self` param specifically, since it's separated in
391391 // the path representation
392- if let ty:: GenericArgKind :: Type ( ty) = param . kind ( )
392+ if let ty:: GenericArgKind :: Type ( ty) = arg . kind ( )
393393 && ty == self . tcx . types . self_param
394394 {
395395 error. obligation . cause . span = self_ty
0 commit comments