Merge pull request #239 from jedisct1/nightly
Changes for rust-nightly after #27856
This commit is contained in:
@@ -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::FkFnBlock = k {
|
||||
if let FnKind::FkClosure = k {
|
||||
// Does not apply to closures
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user