From acf9b83e71b6eac23f962315423e9158da0d372e Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Thu, 13 Oct 2011 14:53:34 -0700 Subject: [PATCH] Fix a use of visit in rustc::middle::fn_usage This was working by just skipping an AST node instead of doing the advertised check. I can't find a test case for it, but this is more correct. --- src/comp/middle/fn_usage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/comp/middle/fn_usage.rs b/src/comp/middle/fn_usage.rs index 035d611fbdc6..70d5b57f3d98 100644 --- a/src/comp/middle/fn_usage.rs +++ b/src/comp/middle/fn_usage.rs @@ -51,7 +51,7 @@ fn fn_usage_expr(expr: @ast::expr, ast::expr_call(f, args) { let f_ctx = {unsafe_fn_legal: true, generic_bare_fn_legal: true with ctx}; - visit::visit_expr(f, f_ctx, v); + v.visit_expr(f, f_ctx, v); let args_ctx = {unsafe_fn_legal: false, generic_bare_fn_legal: false with ctx};