Merge pull request #270 from jedisct1/nightly
Yet another fix for rust-nightly
This commit is contained in:
commit
2abc5ab97c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue