]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_middle/src/ty/subst.rs
When checking associated type bounds, use bound vars for GAT params in param_env
[rust.git] / compiler / rustc_middle / src / ty / subst.rs
index 9b8d22d8eafcebc6d5fa5b2c3d3642217c1f22ab..cb8a24351373a4b7b2f3a58e98358404f7973c9d 100644 (file)
@@ -234,7 +234,7 @@ pub fn extend_to<F>(&self, tcx: TyCtxt<'tcx>, def_id: DefId, mut mk_kind: F) ->
         })
     }
 
-    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 @@ fn fill_item<F>(
         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,