Don't super fold const in Resolver
This commit is contained in:
parent
575f129faa
commit
d588bc2a2b
1 changed files with 1 additions and 4 deletions
|
@ -864,10 +864,7 @@ impl<'cx, 'tcx> TypeFolder<TyCtxt<'tcx>> for Resolver<'cx, 'tcx> {
|
|||
}
|
||||
|
||||
fn fold_const(&mut self, ct: ty::Const<'tcx>) -> ty::Const<'tcx> {
|
||||
self.handle_term(ct, ty::Const::outer_exclusive_binder, |tcx, guar| {
|
||||
ty::Const::new_error(tcx, guar)
|
||||
})
|
||||
.super_fold_with(self)
|
||||
self.handle_term(ct, ty::Const::outer_exclusive_binder, ty::Const::new_error)
|
||||
}
|
||||
|
||||
fn fold_predicate(&mut self, predicate: ty::Predicate<'tcx>) -> ty::Predicate<'tcx> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue