Skip to content

Commit acf9b83

Browse files
committed
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.
1 parent bc4c3df commit acf9b83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/comp/middle/fn_usage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fn fn_usage_expr(expr: @ast::expr,
5151
ast::expr_call(f, args) {
5252
let f_ctx = {unsafe_fn_legal: true,
5353
generic_bare_fn_legal: true with ctx};
54-
visit::visit_expr(f, f_ctx, v);
54+
v.visit_expr(f, f_ctx, v);
5555

5656
let args_ctx = {unsafe_fn_legal: false,
5757
generic_bare_fn_legal: false with ctx};

0 commit comments

Comments
 (0)