Skip to content
Permalink
Browse files

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

  • Loading branch information...
nox committed Jan 15, 2019
1 parent a6c7fc4 commit 1bd29f1cfd1b175f6dd7586138741cb5a473570e
Showing with 3 additions and 4 deletions.
  1. +2 −3 components/script_plugins/unrooted_must_root.rs
  2. +1 −1 rust-toolchain
@@ -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,
@@ -1 +1 @@
nightly-2019-01-04
nightly-2019-01-15

0 comments on commit 1bd29f1

Please sign in to comment.
You can’t perform that action at this time.