Uplift Canonical to rustc_type_ir

This commit is contained in:
Michael Goulet 2023-10-20 21:07:30 -07:00
parent b66fe58f68
commit 024ca99de5
12 changed files with 201 additions and 95 deletions

View file

@ -293,7 +293,7 @@ impl<'cx, 'tcx> FallibleTypeFolder<TyCtxt<'tcx>> for QueryNormalizer<'cx, 'tcx>
_ => unreachable!(),
}?;
// We don't expect ambiguity.
if result.is_ambiguous() {
if !result.value.is_proven() {
// Rustdoc normalizes possibly not well-formed types, so only
// treat this as a bug if we're not in rustdoc.
if !tcx.sess.opts.actually_rustdoc {