mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Update Rust to 1.33.0-nightly (03acbd71c 2019-01-14)
This commit is contained in:
parent
a6c7fc426c
commit
1bd29f1cfd
2 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue