Stop using CRATE_DEF_INDEX outside of metadata encoding. `CRATE_DEF_ID` and `CrateNum::as_def_id` are almost always what we want. We should not manipulate raw `DefIndex` outside of metadata encoding. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
Stop using CRATE_DEF_INDEX outside of metadata encoding. `CRATE_DEF_ID` and `CrateNum::as_def_id` are almost always what we want. We should not manipulate raw `DefIndex` outside of metadata encoding. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||