We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acf9b83 commit 3808a49Copy full SHA for 3808a49
src/comp/middle/fn_usage.rs
@@ -11,12 +11,6 @@ type fn_usage_ctx = {
11
generic_bare_fn_legal: bool
12
};
13
14
-fn fn_usage_view_item(_vi: @ast::view_item,
15
- _ctx: fn_usage_ctx,
16
- _v: visit::vt<fn_usage_ctx>) {
17
- // Ignore paths that appear in use, import, etc
18
-}
19
-
20
fn fn_usage_expr(expr: @ast::expr,
21
ctx: fn_usage_ctx,
22
v: visit::vt<fn_usage_ctx>) {
@@ -81,8 +75,7 @@ fn fn_usage_expr(expr: @ast::expr,
81
75
fn check_crate_fn_usage(tcx: ty::ctxt, crate: @ast::crate) {
82
76
let visit =
83
77
visit::mk_vt(
84
- @{visit_expr: fn_usage_expr,
85
- visit_view_item: fn_usage_view_item
78
+ @{visit_expr: fn_usage_expr
86
79
with *visit::default_visitor()});
87
80
let ctx = {
88
tcx: tcx,
0 commit comments