Skip to content

Commit fb196e6

Browse files
committed
Make alias analysis properly recognize closures in call position
I figured this'd break a few things, but in fact it causes no problems whatsoever.
1 parent 6ba4eac commit fb196e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/comp/middle/alias.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ fn check_call(cx: &ctx, f: &@ast::expr, args: &[@ast::expr], sc: &scope)
181181
}
182182
let f_may_close = alt f.node {
183183
ast::expr_path(_) { def_is_local(cx.tcx.def_map.get(f.id), true) }
184-
_ { false } // FIXME should be true!
184+
_ { true }
185185
};
186186
if f_may_close {
187187
let i = 0u;

0 commit comments

Comments
 (0)