diff options
author | Keegan McAllister <kmcallister@mozilla.com> | 2014-09-16 13:00:18 -0700 |
---|---|---|
committer | Keegan McAllister <kmcallister@mozilla.com> | 2014-09-20 13:00:06 -0700 |
commit | a640a7c5c34f914d3c8515f9b89ae78919af4913 (patch) | |
tree | 9677c1626b445a50bfedfbe82fe426578c64996d /components/macros/lib.rs | |
parent | 8a7eefefd52f7e202069d6a58853d8f31e2c4113 (diff) | |
download | servo-a640a7c5c34f914d3c8515f9b89ae78919af4913.tar.gz servo-a640a7c5c34f914d3c8515f9b89ae78919af4913.zip |
Upgrade to rustc 0.12.0-pre (4d2af3861 2014-09-17 15:51:11 +0000)
Diffstat (limited to 'components/macros/lib.rs')
-rw-r--r-- | components/macros/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/macros/lib.rs b/components/macros/lib.rs index 1ce4832b19a..daf5eb3c52c 100644 --- a/components/macros/lib.rs +++ b/components/macros/lib.rs @@ -109,9 +109,9 @@ impl LintPass for UnrootedPass { } } - fn check_fn(&mut self, cx: &Context, kind: &syntax::visit::FnKind, decl: &ast::FnDecl, + fn check_fn(&mut self, cx: &Context, kind: syntax::visit::FnKind, decl: &ast::FnDecl, block: &ast::Block, _span: syntax::codemap::Span, _id: ast::NodeId) { - match *kind { + match kind { syntax::visit::FkItemFn(i, _, _, _) | syntax::visit::FkMethod(i, _, _) if i.as_str() == "new" || i.as_str() == "new_inherited" => { return; |