From f81986031ca8c67525b149159b051d51a638dc89 Mon Sep 17 00:00:00 2001 From: Seo Sanghyeon Date: Tue, 9 Jul 2013 00:34:28 +0900 Subject: Add a lint to detect unnecessarily qualified names --- src/libsyntax/ast_util.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libsyntax') diff --git a/src/libsyntax/ast_util.rs b/src/libsyntax/ast_util.rs index 78be8e6f180..2c62432c7f9 100644 --- a/src/libsyntax/ast_util.rs +++ b/src/libsyntax/ast_util.rs @@ -462,6 +462,7 @@ pub fn id_visitor(vfn: @fn(node_id, T)) -> visit::vt { }, visit_ty: |ty, (t, vt)| { + vfn(ty.id, copy t); match ty.node { ty_path(_, _, id) => vfn(id, copy t), _ => { /* fall through */ } -- cgit 1.4.1-3-g733a5