X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibrustc%2Fty%2Fsubst.rs;h=80b113dfdf5a5f2b6404ce66ed4ed53c47fc93a1;hb=bc4810d907deef00ea5bd0124272cfcab3975e3c;hp=83222e79a1298a558d6c0aa2eff222b659cce36e;hpb=d0f8e2913a93573c78cddfd297944cff4eb4c41a;p=rust.git diff --git a/src/librustc/ty/subst.rs b/src/librustc/ty/subst.rs index 83222e79a12..80b113dfdf5 100644 --- a/src/librustc/ty/subst.rs +++ b/src/librustc/ty/subst.rs @@ -220,11 +220,11 @@ pub fn extend_to(&self, tcx.intern_substs(&result) } - fn fill_item(substs: &mut Vec>, - tcx: TyCtxt<'a, 'gcx, 'tcx>, - defs: &ty::Generics, - mk_region: &mut FR, - mk_type: &mut FT) + pub fn fill_item(substs: &mut Vec>, + tcx: TyCtxt<'a, 'gcx, 'tcx>, + defs: &ty::Generics, + mk_region: &mut FR, + mk_type: &mut FT) where FR: FnMut(&ty::RegionParameterDef, &[Kind<'tcx>]) -> ty::Region<'tcx>, FT: FnMut(&ty::TypeParameterDef, &[Kind<'tcx>]) -> Ty<'tcx> {