mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Upgrade to rustc 1.37.0-nightly (04a3dd8a8 2019-06-18)
This commit is contained in:
parent
97ad913dc2
commit
112f1ddeba
3 changed files with 4 additions and 10 deletions
|
@ -192,10 +192,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for WebIdlPass {
|
|||
|
||||
let item = match cx.tcx.hir().get_by_hir_id(id) {
|
||||
hir::Node::Item(item) => item,
|
||||
_ => cx
|
||||
.tcx
|
||||
.hir()
|
||||
.expect_item_by_hir_id(cx.tcx.hir().get_parent_item(id)),
|
||||
_ => cx.tcx.hir().expect_item(cx.tcx.hir().get_parent_item(id)),
|
||||
};
|
||||
|
||||
let parent_name = def.fields().iter().next().map(|field| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue