Upgrade to rustc 1.2.0-dev (474c6e0ae 2015-05-30)

This commit is contained in:
Manish Goregaokar 2015-06-01 22:03:27 +05:30
parent 2a8d595289
commit f94eced1f5
8 changed files with 333 additions and 225 deletions

View file

@ -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,
_ => ()
},