Update Rust to 1.33.0-nightly (03acbd71c 2019-01-14)

This commit is contained in:
Anthony Ramine 2019-01-15 17:53:48 +01:00
parent a6c7fc426c
commit 1bd29f1cfd
2 changed files with 3 additions and 4 deletions

View file

@ -7,7 +7,7 @@ use rustc::hir::intravisit as visit;
use rustc::hir::{self, ExprKind};
use rustc::lint::{LateContext, LateLintPass, LintArray, LintContext, LintPass};
use rustc::ty;
use syntax::{ast, source_map, symbol::Ident};
use syntax::{ast, source_map};
declare_lint!(
UNROOTED_MUST_ROOT,
@ -168,8 +168,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnrootedPass {
id: ast::NodeId,
) {
let in_new_function = match kind {
visit::FnKind::ItemFn(n, _, _, _, _) |
visit::FnKind::Method(Ident { name: n, .. }, _, _, _) => {
visit::FnKind::ItemFn(n, _, _, _, _) | visit::FnKind::Method(n, _, _, _) => {
&*n.as_str() == "new" || n.as_str().starts_with("new_")
},
visit::FnKind::Closure(_) => return,

View file

@ -1 +1 @@
nightly-2019-01-04
nightly-2019-01-15