]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #96142 - cjgillot:no-crate-def-index, r=petrochenkov
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>
Tue, 19 Apr 2022 12:43:21 +0000 (14:43 +0200)
committerGitHub <noreply@github.com>
Tue, 19 Apr 2022 12:43:21 +0000 (14:43 +0200)
commit60bb2a710ee12d2da604c694400bafad4272a997
treec173c2a2507494d98b5ebb33198affa2a151e92c
parentcb1924a42a27937760ad4c24daa6745c89700f92
parent18a44116b866ebf5171b16d917c09dfd44a8fd36
Rollup merge of #96142 - cjgillot:no-crate-def-index, r=petrochenkov

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.