Skip to content

Commit

Permalink
s/abstract_type_generics/opaque_type_generics/
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Jul 2, 2019
1 parent 6234aed commit 0c8ebea
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/librustc/infer/opaque_types/mod.rs
Expand Up @@ -333,7 +333,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {

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

let abstract_type_generics = tcx.generics_of(def_id);
let opaque_type_generics = tcx.generics_of(def_id);

let span = tcx.def_span(def_id);

Expand Down Expand Up @@ -365,7 +365,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
// `['a]` for the first impl trait and `'b` for the
// second.
let mut least_region = None;
for param in &abstract_type_generics.params {
for param in &opaque_type_generics.params {
match param.kind {
GenericParamDefKind::Lifetime => {}
_ => continue,
Expand Down Expand Up @@ -396,7 +396,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
// regions that appear in the impl trait.
return self.generate_member_constraint(
concrete_ty,
abstract_type_generics,
opaque_type_generics,
opaque_defn,
def_id,
lr,
Expand Down Expand Up @@ -427,7 +427,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
fn generate_member_constraint(
&self,
concrete_ty: Ty<'tcx>,
abstract_type_generics: &ty::Generics,
opaque_type_generics: &ty::Generics,
opaque_defn: &OpaqueTypeDecl<'tcx>,
opaque_type_def_id: DefId,
conflict1: ty::Region<'tcx>,
Expand All @@ -447,7 +447,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
// type can be equal to any of the region parameters of the
// opaque type definition.
let choice_regions: Lrc<Vec<ty::Region<'tcx>>> = Lrc::new(
abstract_type_generics
opaque_type_generics
.params
.iter()
.filter(|param| match param.kind {
Expand Down

0 comments on commit 0c8ebea

Please sign in to comment.