@@ -333,7 +333,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
333
333
334
334
debug ! ( "constrain_opaque_type: concrete_ty={:?}" , concrete_ty) ;
335
335
336
- let abstract_type_generics = tcx. generics_of ( def_id) ;
336
+ let opaque_type_generics = tcx. generics_of ( def_id) ;
337
337
338
338
let span = tcx. def_span ( def_id) ;
339
339
@@ -365,7 +365,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
365
365
// `['a]` for the first impl trait and `'b` for the
366
366
// second.
367
367
let mut least_region = None ;
368
- for param in & abstract_type_generics . params {
368
+ for param in & opaque_type_generics . params {
369
369
match param. kind {
370
370
GenericParamDefKind :: Lifetime => { }
371
371
_ => continue ,
@@ -396,7 +396,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
396
396
// regions that appear in the impl trait.
397
397
return self . generate_member_constraint (
398
398
concrete_ty,
399
- abstract_type_generics ,
399
+ opaque_type_generics ,
400
400
opaque_defn,
401
401
def_id,
402
402
lr,
@@ -427,7 +427,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
427
427
fn generate_member_constraint (
428
428
& self ,
429
429
concrete_ty : Ty < ' tcx > ,
430
- abstract_type_generics : & ty:: Generics ,
430
+ opaque_type_generics : & ty:: Generics ,
431
431
opaque_defn : & OpaqueTypeDecl < ' tcx > ,
432
432
opaque_type_def_id : DefId ,
433
433
conflict1 : ty:: Region < ' tcx > ,
@@ -447,7 +447,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
447
447
// type can be equal to any of the region parameters of the
448
448
// opaque type definition.
449
449
let choice_regions: Lrc < Vec < ty:: Region < ' tcx > > > = Lrc :: new (
450
- abstract_type_generics
450
+ opaque_type_generics
451
451
. params
452
452
. iter ( )
453
453
. filter ( |param| match param. kind {
0 commit comments