mirror of
https://github.com/servo/servo.git
synced 2025-06-10 01:23:13 +00:00
Upgrade to rustc 1.37.0-nightly (088b98730 2019-07-03)
This commit is contained in:
parent
a2b76b0169
commit
43a75011be
7 changed files with 14 additions and 6 deletions
|
@ -151,7 +151,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnrootedPass {
|
|||
_gen: &'tcx hir::Generics,
|
||||
id: HirId,
|
||||
) {
|
||||
let item = match cx.tcx.hir().get_by_hir_id(id) {
|
||||
let item = match cx.tcx.hir().get(id) {
|
||||
hir::Node::Item(item) => item,
|
||||
_ => cx.tcx.hir().expect_item(cx.tcx.hir().get_parent_item(id)),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue