diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-06-17 20:55:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-17 20:55:57 +0200 |
| commit | 0800b6ee20bdc903d87bb02fb2bed00480a35007 (patch) | |
| tree | 7bc96fc9448df2bb39d036d151b852c1b130b9a8 /src/test | |
| parent | a2259aae7d46caaf95f5bca2ae15de48951c365f (diff) | |
| parent | e1bf56de25a78b3883822f82aeba0010c4a2fad7 (diff) | |
Rollup merge of #61836 - ljedrz:i_still_hate_node_ids, r=ljedrz
Replace some uses of NodeId with HirId We are still using `NodeId` in some spots where we could use `HirId` instead; this PR targets some of these spots and removes some of the associated `hir::map` functions.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass-fulldeps/auxiliary/issue-40001-plugin.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-pass-fulldeps/auxiliary/issue-40001-plugin.rs b/src/test/run-pass-fulldeps/auxiliary/issue-40001-plugin.rs index 40e0115c623..76554eaba9c 100644 --- a/src/test/run-pass-fulldeps/auxiliary/issue-40001-plugin.rs +++ b/src/test/run-pass-fulldeps/auxiliary/issue-40001-plugin.rs @@ -45,7 +45,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MissingWhitelistedAttrPass { let item = match cx.tcx.hir().get_by_hir_id(id) { 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)), }; if !attr::contains_name(&item.attrs, Symbol::intern("whitelisted_attr")) { |
