diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2019-01-15 17:53:48 +0100 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2019-01-15 23:09:18 +0100 |
commit | 1bd29f1cfd1b175f6dd7586138741cb5a473570e (patch) | |
tree | 2ed0e4bdd67c9878908213b93feae906ceb3fcdf | |
parent | a6c7fc426cfe3b96a3494432883d07d439d19b50 (diff) | |
download | servo-1bd29f1cfd1b175f6dd7586138741cb5a473570e.tar.gz servo-1bd29f1cfd1b175f6dd7586138741cb5a473570e.zip |
Update Rust to 1.33.0-nightly (03acbd71c 2019-01-14)
-rw-r--r-- | components/script_plugins/unrooted_must_root.rs | 5 | ||||
-rw-r--r-- | rust-toolchain | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/components/script_plugins/unrooted_must_root.rs b/components/script_plugins/unrooted_must_root.rs index 58700e5d6b6..dc38054720c 100644 --- a/components/script_plugins/unrooted_must_root.rs +++ b/components/script_plugins/unrooted_must_root.rs @@ -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, diff --git a/rust-toolchain b/rust-toolchain index b3ce0a23f6e..3bd0575c240 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -nightly-2019-01-04 +nightly-2019-01-15 |