about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/debug.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-05-09 11:17:17 +0000
committerbors <bors@rust-lang.org>2021-05-09 11:17:17 +0000
commit19dae7b4539a58e4d2fe6429a77852665f399150 (patch)
treefcae5a7c632ad90e997a14cb83bdd4da4e420e64 /compiler/rustc_mir/src/transform/coverage/debug.rs
parentd6d028369be9eb02d219506c0dd662a2f863fc18 (diff)
parent4b7c8b0b53c2bea54e9cd029c68ebdc6f668b1b8 (diff)
downloadrust-19dae7b4539a58e4d2fe6429a77852665f399150.tar.gz
rust-19dae7b4539a58e4d2fe6429a77852665f399150.zip
Auto merge of #85093 - camelid:remove-fake-expect_local, r=GuillaumeGomez
Remove `FakeDefId::expect_local()`

This function returned a fake `DefIndex`, with no indication that it was
fake, when it was provided with a `FakeDefId::Fake`. Every use of the
function uses the returned `DefIndex` in a call to
`tcx.local_def_id_to_hir_id()`, which I'm pretty sure would panic if it
were given a fake `DefIndex`.

I removed the function and replaced all calls to it with a call to
`expect_real()` followed by `DefId::expect_local()` (that's a function
on the *real* `DefId`).
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions