1
Fork 0

add EarlyBinder to thir_abstract_const; remove tcx.bound_abstract_const

This commit is contained in:
Kyle Matsuda 2023-05-09 16:02:52 -06:00
parent 3a37c2f052
commit 26dc139b37
6 changed files with 10 additions and 16 deletions

View file

@ -1530,7 +1530,7 @@ impl<'tcx> InferCtxt<'tcx> {
// variables
let tcx = self.tcx;
if substs.has_non_region_infer() {
if let Some(ct) = tcx.bound_abstract_const(unevaluated.def)? {
if let Some(ct) = tcx.thir_abstract_const(unevaluated.def)? {
let ct = tcx.expand_abstract_consts(ct.subst(tcx, substs));
if let Err(e) = ct.error_reported() {
return Err(ErrorHandled::Reported(e));