mirror of
https://github.com/servo/servo.git
synced 2025-07-29 10:10:34 +01:00
Upgrade to rustc 1.2.0-dev (474c6e0ae 2015-05-30)
This commit is contained in:
parent
2a8d595289
commit
f94eced1f5
8 changed files with 333 additions and 225 deletions
|
@ -91,11 +91,11 @@ impl LintPass for UnrootedPass {
|
|||
fn check_fn(&mut self, cx: &Context, kind: visit::FnKind, decl: &ast::FnDecl,
|
||||
block: &ast::Block, _span: codemap::Span, id: ast::NodeId) {
|
||||
match kind {
|
||||
visit::FkItemFn(i, _, _, _, _) |
|
||||
visit::FkItemFn(i, _, _, _, _, _) |
|
||||
visit::FkMethod(i, _, _) if i.as_str() == "new" || i.as_str() == "new_inherited" => {
|
||||
return;
|
||||
},
|
||||
visit::FkItemFn(_, _, style, _, _) => match style {
|
||||
visit::FkItemFn(_, _, style, _, _, _) => match style {
|
||||
ast::Unsafety::Unsafe => return,
|
||||
_ => ()
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue