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 1a34cbc commit 03af82bCopy full SHA for 03af82b
src/librustc_metadata/rmeta/encoder.rs
@@ -1726,10 +1726,15 @@ pub(super) fn encode_metadata(tcx: TyCtxt<'_>) -> EncodedMetadata {
1726
|| {
1727
// Prefetch some queries used by metadata encoding
1728
tcx.dep_graph.with_ignore(|| {
1729
- par_for_each_in(tcx.mir_keys(LOCAL_CRATE), |&def_id| {
1730
- tcx.optimized_mir(def_id);
1731
- tcx.promoted_mir(def_id);
1732
- });
+ join(
+ || {
+ par_for_each_in(tcx.mir_keys(LOCAL_CRATE), |&def_id| {
+ tcx.optimized_mir(def_id);
1733
+ tcx.promoted_mir(def_id);
1734
+ })
1735
+ },
1736
+ || tcx.exported_symbols(LOCAL_CRATE),
1737
+ );
1738
})
1739
},
1740
)
0 commit comments