Add a lint to detect unnecessarily qualified names

This commit is contained in:
Seo Sanghyeon
2013-07-09 00:34:28 +09:00
parent b5e9194836
commit f81986031c
3 changed files with 43 additions and 26 deletions

View File

@@ -462,6 +462,7 @@ pub fn id_visitor<T: Copy>(vfn: @fn(node_id, T)) -> visit::vt<T> {
},
visit_ty: |ty, (t, vt)| {
vfn(ty.id, copy t);
match ty.node {
ty_path(_, _, id) => vfn(id, copy t),
_ => { /* fall through */ }