We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d739ca9 commit 9f257bbCopy full SHA for 9f257bb
src/librustc_metadata/rmeta/encoder.rs
@@ -1710,10 +1710,15 @@ pub(super) fn encode_metadata(tcx: TyCtxt<'_>) -> EncodedMetadata {
1710
|| {
1711
// Prefetch some queries used by metadata encoding
1712
tcx.dep_graph.with_ignore(|| {
1713
- par_for_each_in(tcx.mir_keys(LOCAL_CRATE), |&def_id| {
1714
- tcx.optimized_mir(def_id);
1715
- tcx.promoted_mir(def_id);
1716
- });
+ join(
+ || {
+ par_for_each_in(tcx.mir_keys(LOCAL_CRATE), |&def_id| {
+ tcx.optimized_mir(def_id);
1717
+ tcx.promoted_mir(def_id);
1718
+ })
1719
+ },
1720
+ || tcx.exported_symbols(LOCAL_CRATE),
1721
+ );
1722
})
1723
},
1724
)
0 commit comments