Skip to content

Commit

Permalink
Update Rust to 1.33.0-nightly (03acbd71c 2019-01-14)
Browse files Browse the repository at this point in the history
  • Loading branch information
nox committed Jan 15, 2019
1 parent a6c7fc4 commit 1bd29f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions components/script_plugins/unrooted_must_root.rs
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
@@ -1 +1 @@
nightly-2019-01-04
nightly-2019-01-15

0 comments on commit 1bd29f1

Please sign in to comment.