add test + don't warn on Res::SelfTy
This commit is contained in:
parent
b7ab4777b2
commit
d6b28f377c
5 changed files with 79 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue