diff options
| author | bors <bors@rust-lang.org> | 2021-11-29 15:02:01 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-11-29 15:02:01 +0000 |
| commit | 6db0a0e9a4a2f55b1a85954e114ada0b45c32e45 (patch) | |
| tree | c37c62122e52f27d9723fc505bf353ed04e54b0c /compiler/rustc_mir_transform/src/coverage/graph.rs | |
| parent | 8b954910c59a7a362c60959e93110892b6e9a691 (diff) | |
| parent | 5fb4648757add26b0289ae69203f26e856580831 (diff) | |
| download | rust-6db0a0e9a4a2f55b1a85954e114ada0b45c32e45.tar.gz rust-6db0a0e9a4a2f55b1a85954e114ada0b45c32e45.zip | |
Auto merge of #91299 - cjgillot:expect-ldid, r=petrochenkov
Take a LocalDefId in expect_*item. Items and item-likes are always HIR owners. When trying to find such nodes, there is no ambiguity, the `LocalDefId` and the `HirId::owner` always match. In such cases, `local_def_id_to_hir_id` does not carry any meaningful information, so we can just skip calling it altogether.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/graph.rs')
0 files changed, 0 insertions, 0 deletions
