Be better at reporting alias errors

This commit is contained in:
Michael Goulet
2024-10-14 13:04:10 -04:00
parent fd2038d344
commit 8528387743
39 changed files with 237 additions and 420 deletions

View File

@@ -177,7 +177,8 @@ fn to_selection<'tcx>(
| ProbeKind::UpcastProjectionCompatibility
| ProbeKind::OpaqueTypeStorageLookup { result: _ }
| ProbeKind::Root { result: _ }
| ProbeKind::ShadowedEnvProbing => {
| ProbeKind::ShadowedEnvProbing
| ProbeKind::RigidAlias { result: _ } => {
span_bug!(span, "didn't expect to assemble trait candidate from {:#?}", cand.kind())
}
})