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.
This commit is contained in:
Brian Anderson 2011-10-13 14:53:34 -07:00
parent bc4c3df1bf
commit acf9b83e71

View file

@ -51,7 +51,7 @@ fn fn_usage_expr(expr: @ast::expr,
ast::expr_call(f, args) { ast::expr_call(f, args) {
let f_ctx = {unsafe_fn_legal: true, let f_ctx = {unsafe_fn_legal: true,
generic_bare_fn_legal: true with ctx}; 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, let args_ctx = {unsafe_fn_legal: false,
generic_bare_fn_legal: false with ctx}; generic_bare_fn_legal: false with ctx};