diff options
| author | bors <bors@rust-lang.org> | 2021-05-09 11:17:17 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-05-09 11:17:17 +0000 |
| commit | 19dae7b4539a58e4d2fe6429a77852665f399150 (patch) | |
| tree | fcae5a7c632ad90e997a14cb83bdd4da4e420e64 /compiler/rustc_mir/src/transform/coverage/debug.rs | |
| parent | d6d028369be9eb02d219506c0dd662a2f863fc18 (diff) | |
| parent | 4b7c8b0b53c2bea54e9cd029c68ebdc6f668b1b8 (diff) | |
| download | rust-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
