Unwrap the results of type folders

Co-authored-by: Alan Egerton <eggyal@gmail.com>
This commit is contained in:
LeSeulArtichaut
2021-05-19 15:03:43 +02:00
committed by Alan Egerton
parent 6dc3dae46f
commit 30bf20a692
34 changed files with 191 additions and 167 deletions

View File

@@ -88,7 +88,7 @@ impl<'cx, 'tcx> AtExt<'tcx> for At<'cx, 'tcx> {
normalizer.universes.extend((0..max_visitor.escaping).map(|_| None));
}
}
let result = value.fold_with(&mut normalizer);
let result = value.fold_with(&mut normalizer).into_ok();
info!(
"normalize::<{}>: result={:?} with {} obligations",
std::any::type_name::<T>(),