mirror of
https://github.com/servo/servo.git
synced 2025-08-02 04:00:32 +01:00
Upgrade to rustc 1.35.0-nightly (4c27fb19b 2019-03-25)
This commit is contained in:
parent
c9b5b8fad3
commit
389e69bafe
7 changed files with 17 additions and 13 deletions
|
@ -141,7 +141,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnrootedPass {
|
|||
fn check_variant(&mut self, cx: &LateContext, var: &hir::Variant, _gen: &hir::Generics) {
|
||||
let ref map = cx.tcx.hir();
|
||||
if map
|
||||
.expect_item_by_hir_id(map.get_parent_item(var.node.data.hir_id()))
|
||||
.expect_item_by_hir_id(map.get_parent_item(var.node.id))
|
||||
.attrs
|
||||
.iter()
|
||||
.all(|a| !a.check_name("must_root"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue