FnCtxt normalization stuff

This commit is contained in:
Michael Goulet
2022-11-25 17:28:50 +00:00
parent fc710832ea
commit 52cd342696
15 changed files with 41 additions and 67 deletions

View File

@@ -109,6 +109,9 @@ pub trait AstConv<'tcx> {
) -> Ty<'tcx>;
/// Normalize an associated type coming from the user.
///
/// This should only be used by astconv. Use `FnCtxt::normalize`
/// or `ObligationCtxt::normalize` in downstream crates.
fn normalize_ty(&self, span: Span, ty: Ty<'tcx>) -> Ty<'tcx>;
/// Invoked when we encounter an error from some prior pass