1
Fork 0

Taking review hints into account.

This commit is contained in:
ricked-twice 2022-05-03 22:23:30 +02:00
parent bfcd191905
commit 574bee35fb
No known key found for this signature in database
GPG key ID: 92AB9553ED577503
3 changed files with 8 additions and 9 deletions

View file

@ -866,7 +866,7 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
return false;
}
// This is a quick fix to resolve an ICE ([issue#96223](https://github.com/rust-lang/rust/issues/96223)).
// This is a quick fix to resolve an ICE (#96223).
// This change should probably be deeper.
// As suggested by @jackh726, `mk_trait_obligation_with_new_self_ty` could take a `Binder<(TraitRef, Ty)>
// instead of `Binder<Ty>` leading to some changes to its call places.