1
Fork 0

Better names?

This commit is contained in:
Michael Goulet 2023-03-12 00:59:54 +00:00
parent 868aa42f4b
commit 84d254ead0
16 changed files with 55 additions and 49 deletions

View file

@ -102,8 +102,8 @@ impl<'tcx> InherentCollect<'tcx> {
if let Some(simp) = simplify_type(
self.tcx,
self_ty,
TreatParams::AsInfer,
TreatProjections::DefaultCandidate,
TreatParams::AsCandidateKey,
TreatProjections::AsCandidateKey,
) {
self.impls_map.incoherent_impls.entry(simp).or_default().push(impl_def_id);
} else {
@ -164,9 +164,12 @@ impl<'tcx> InherentCollect<'tcx> {
}
}
if let Some(simp) =
simplify_type(self.tcx, ty, TreatParams::AsInfer, TreatProjections::DefaultCandidate)
{
if let Some(simp) = simplify_type(
self.tcx,
ty,
TreatParams::AsCandidateKey,
TreatProjections::AsCandidateKey,
) {
self.impls_map.incoherent_impls.entry(simp).or_default().push(impl_def_id);
} else {
bug!("unexpected primitive type: {:?}", ty);