You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// there's no need to do dep-graph tracking for any of it.
2363
2364
tcx.dep_graph.assert_ignored();
2364
2365
2365
-
// Generate the metadata stub manually, as that is a small file compared to full metadata.
2366
+
join(
2367
+
|| encode_metadata_impl(tcx, path, ref_path),
2368
+
|| {
2369
+
if tcx.sess.threads() == 1{
2370
+
return;
2371
+
}
2372
+
2373
+
// Prefetch some queries used by metadata encoding.
2374
+
// This is not necessary for correctness, but is only done for performance reasons.
2375
+
// It can be removed if it turns out to cause trouble or be detrimental to performance.
2376
+
join(
2377
+
|| prefetch_mir(tcx),
2378
+
|| {
2379
+
let _ = tcx.exported_non_generic_symbols(LOCAL_CRATE);
2380
+
let _ = tcx.exported_generic_symbols(LOCAL_CRATE);
2381
+
},
2382
+
);
2383
+
},
2384
+
);
2385
+
}
2386
+
2387
+
fnencode_metadata_impl(tcx:TyCtxt<'_>,path:&Path,ref_path:Option<&Path>){// Generate the metadata stub manually, as that is a small file compared to full metadata.
2366
2388
ifletSome(ref_path) = ref_path {
2367
2389
let _prof_timer = tcx.prof.verbose_generic_activity("generate_crate_metadata_stub");
0 commit comments