1
Fork 0

Add bound_const_param_default

This commit is contained in:
Jack Huey 2022-07-07 20:56:22 -04:00
parent f16584357d
commit 9935796645
5 changed files with 15 additions and 10 deletions

View file

@ -676,6 +676,10 @@ impl<'tcx> TyCtxt<'tcx> {
) -> ty::EarlyBinder<&'tcx ty::List<ty::Predicate<'tcx>>> {
ty::EarlyBinder(self.item_bounds(def_id))
}
pub fn bound_const_param_default(self, def_id: DefId) -> ty::EarlyBinder<ty::Const<'tcx>> {
ty::EarlyBinder(self.const_param_default(def_id))
}
}
struct OpaqueTypeExpander<'tcx> {