Merge pull request #270 from jedisct1/nightly

Yet another fix for rust-nightly
This commit is contained in:
llogiq 2015-09-01 14:54:21 +02:00
commit 2abc5ab97c

View File

@ -22,7 +22,7 @@ impl LintPass for TopLevelRefPass {
}
fn check_fn(&mut self, cx: &Context, k: FnKind, decl: &FnDecl, _: &Block, _: Span, _: NodeId) {
if let FnKind::FkClosure = k {
if let FnKind::Closure = k {
// Does not apply to closures
return
}