1
Fork 0

Update with final comments

This commit is contained in:
kadmin 2022-01-14 19:01:35 +00:00
parent 1c1ce2fbda
commit b77bb5cb25
6 changed files with 10 additions and 31 deletions

View file

@ -1403,9 +1403,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
// `trait_object_dummy_self`, so check for that.
let references_self = match pred.skip_binder().term {
ty::Term::Ty(ty) => ty.walk().any(|arg| arg == dummy_self.into()),
ty::Term::Const(c) => {
c.ty.walk().any(|arg| arg == dummy_self.into())
}
ty::Term::Const(c) => c.ty.walk().any(|arg| arg == dummy_self.into()),
};
// If the projection output contains `Self`, force the user to