Auto merge of #98559 - jackh726:remove-reempty, r=oli-obk

Remove ReEmpty

r? rust-lang/types
This commit is contained in:
bors 2022-09-10 20:54:01 +00:00
commit 2287107588
32 changed files with 336 additions and 298 deletions

View file

@ -101,6 +101,7 @@ pub fn trait_obligations<'a, 'tcx>(
wf.normalize(infcx)
}
#[instrument(skip(infcx), ret)]
pub fn predicate_obligations<'a, 'tcx>(
infcx: &InferCtxt<'a, 'tcx>,
param_env: ty::ParamEnv<'tcx>,
@ -440,6 +441,7 @@ impl<'tcx> WfPredicates<'tcx> {
let param_env = self.param_env;
let depth = self.recursion_depth;
while let Some(arg) = walker.next() {
debug!(?arg, ?self.out);
let ty = match arg.unpack() {
GenericArgKind::Type(ty) => ty,
@ -689,6 +691,8 @@ impl<'tcx> WfPredicates<'tcx> {
));
}
}
debug!(?self.out);
}
}