mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Upgrade to rustc 1.30.0-nightly (7061b2775 2018-08-28)
This commit is contained in:
parent
a6dcfdcd55
commit
707df85a82
2 changed files with 2 additions and 3 deletions
|
@ -4,7 +4,6 @@
|
|||
|
||||
use rustc::hir::{self, ExprKind};
|
||||
use rustc::hir::intravisit as visit;
|
||||
use rustc::hir::map as ast_map;
|
||||
use rustc::lint::{LateContext, LintPass, LintArray, LateLintPass, LintContext};
|
||||
use rustc::ty;
|
||||
use syntax::{ast, source_map, symbol::Ident};
|
||||
|
@ -91,7 +90,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnrootedPass {
|
|||
_gen: &hir::Generics,
|
||||
id: ast::NodeId) {
|
||||
let item = match cx.tcx.hir.get(id) {
|
||||
ast_map::Node::NodeItem(item) => item,
|
||||
hir::Node::Item(item) => item,
|
||||
_ => cx.tcx.hir.expect_item(cx.tcx.hir.get_parent(id)),
|
||||
};
|
||||
if item.attrs.iter().all(|a| !a.check_name("must_root")) {
|
||||
|
|
|
@ -1 +1 @@
|
|||
nightly-2018-08-27
|
||||
nightly-2018-08-29
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue