1
Fork 0

When checking associated type bounds, use bound vars for GAT params in param_env

This commit is contained in:
jackh726 2021-08-09 19:26:13 -04:00
parent 9583fd1bdd
commit d9242ff0aa
3 changed files with 84 additions and 12 deletions

View file

@ -234,7 +234,7 @@ impl<'a, 'tcx> InternalSubsts<'tcx> {
})
}
fn fill_item<F>(
pub fn fill_item<F>(
substs: &mut SmallVec<[GenericArg<'tcx>; 8]>,
tcx: TyCtxt<'tcx>,
defs: &ty::Generics,
@ -249,7 +249,7 @@ impl<'a, 'tcx> InternalSubsts<'tcx> {
Self::fill_single(substs, defs, mk_kind)
}
fn fill_single<F>(
pub fn fill_single<F>(
substs: &mut SmallVec<[GenericArg<'tcx>; 8]>,
defs: &ty::Generics,
mk_kind: &mut F,