diff options
| author | Camelid <camelidcamel@gmail.com> | 2021-05-08 15:03:15 -0700 |
|---|---|---|
| committer | Camelid <camelidcamel@gmail.com> | 2021-05-08 15:35:44 -0700 |
| commit | ba13225ba1e3e94b5656181926cd38750eed1503 (patch) | |
| tree | 122ac6b1cebea59f4485bf594d451927b2d01f33 /compiler/rustc_mir/src/transform/coverage/mod.rs | |
| parent | ff34b919075f35a1787659e9c448a34b06bab8de (diff) | |
| download | rust-ba13225ba1e3e94b5656181926cd38750eed1503.tar.gz rust-ba13225ba1e3e94b5656181926cd38750eed1503.zip | |
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/mod.rs')
0 files changed, 0 insertions, 0 deletions
