Skip to content

Commit 9026fc5

Browse files
committed
Auto merge of #155628 - nnethercote:CStore-from_tcx, r=mu001999
Streamline `CrateMetadataRef` construction in `provide_one!`. `cstore.get_crate_data()` creates a `CrateMetadataRef`, which is exactly what we need. The current code is very confused and does several unnecessary things: mapping the `FreezeReadGuard` and calling `CStore::from_tcx` a second time to construct a second `CrateMetadataRef`. This is a small perf win. r? @mu001999
2 parents dfab802 + 4c48adb commit 9026fc5

0 file changed

File tree

    0 commit comments

    Comments
     (0)