Skip to content

Commit 0c8ebea

Browse files
committed
s/abstract_type_generics/opaque_type_generics/
1 parent 6234aed commit 0c8ebea

File tree

1 file changed

+5
-5
lines changed
  • src/librustc/infer/opaque_types

1 file changed

+5
-5
lines changed

src/librustc/infer/opaque_types/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
333333

334334
debug!("constrain_opaque_type: concrete_ty={:?}", concrete_ty);
335335

336-
let abstract_type_generics = tcx.generics_of(def_id);
336+
let opaque_type_generics = tcx.generics_of(def_id);
337337

338338
let span = tcx.def_span(def_id);
339339

@@ -365,7 +365,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
365365
// `['a]` for the first impl trait and `'b` for the
366366
// second.
367367
let mut least_region = None;
368-
for param in &abstract_type_generics.params {
368+
for param in &opaque_type_generics.params {
369369
match param.kind {
370370
GenericParamDefKind::Lifetime => {}
371371
_ => continue,
@@ -396,7 +396,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
396396
// regions that appear in the impl trait.
397397
return self.generate_member_constraint(
398398
concrete_ty,
399-
abstract_type_generics,
399+
opaque_type_generics,
400400
opaque_defn,
401401
def_id,
402402
lr,
@@ -427,7 +427,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
427427
fn generate_member_constraint(
428428
&self,
429429
concrete_ty: Ty<'tcx>,
430-
abstract_type_generics: &ty::Generics,
430+
opaque_type_generics: &ty::Generics,
431431
opaque_defn: &OpaqueTypeDecl<'tcx>,
432432
opaque_type_def_id: DefId,
433433
conflict1: ty::Region<'tcx>,
@@ -447,7 +447,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
447447
// type can be equal to any of the region parameters of the
448448
// opaque type definition.
449449
let choice_regions: Lrc<Vec<ty::Region<'tcx>>> = Lrc::new(
450-
abstract_type_generics
450+
opaque_type_generics
451451
.params
452452
.iter()
453453
.filter(|param| match param.kind {

0 commit comments

Comments
 (0)