1
Fork 0

add test + don't warn on Res::SelfTy

This commit is contained in:
lcnr 2022-06-08 17:49:34 +02:00
parent b7ab4777b2
commit d6b28f377c
5 changed files with 79 additions and 0 deletions

View file

@ -863,6 +863,9 @@ impl<'a, 'tcx> FindInferSourceVisitor<'a, 'tcx> {
// See the `need_type_info/type-alias.rs` test for
// some examples.
}
// There cannot be inference variables in the self type,
// so there's nothing for us to do here.
Res::SelfTy { .. } => {}
_ => warn!(
"unexpected path: def={:?} substs={:?} path={:?}",
def, substs, path,