Skip to content

Rollup of 9 pull requests #70169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 32 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
25e856b
Replace shared root with optional root
Mark-Simulacrum Mar 18, 2020
4e33a54
Remove shared root code and assertions from BTree nodes
Mark-Simulacrum Mar 18, 2020
76f9c96
Make functions dependent only on shared root avoidance safe
Mark-Simulacrum Mar 18, 2020
702758d
Drop NodeHeader type from BTree code
Mark-Simulacrum Mar 18, 2020
416fd43
Simplify ensure_root_is_owned callers
Mark-Simulacrum Mar 18, 2020
fda913b
Add regression test for TAIT lifetime inference (issue #55099)
Aaron1011 Mar 19, 2020
410cd7a
remove unused imports
stlankes Mar 19, 2020
2c38ecf
doc: Add quote to .init_array
tesuji Mar 19, 2020
be06f67
Clean up E0437 explanation
GuillaumeGomez Mar 18, 2020
6f16118
Clean up e0438 explanation
GuillaumeGomez Mar 19, 2020
8e0398c
Clarify the relationship between `forget()` and `ManuallyDrop`.
hniksic Mar 1, 2020
2a08b0e
Restore (and reword) the warning against passing invalid values to me…
hniksic Mar 4, 2020
7554341
Minor re-wordings and typo fixes.
hniksic Mar 18, 2020
2bebe8d
Don't hard-code the vector length in the examples.
hniksic Mar 19, 2020
6cd0dca
Prefetch queries used by the metadata encoder
Zoxc Jan 4, 2020
1a34cbc
Encode exported symbols last
Zoxc Jan 11, 2020
03af82b
Prefetch exported symbols
Zoxc Jan 11, 2020
3d59c0e
Make the timer more verbose
Zoxc Jan 11, 2020
a2bca90
Make metadata prefetching more accurate
Zoxc Jan 13, 2020
801e442
Add some comments
Zoxc Mar 14, 2020
027c8d9
Use `assert_ignored` when encoding metadata
Zoxc Mar 14, 2020
89ef59a
triagebot.toml: accept typo due to pnkfelix
Centril Mar 19, 2020
db7a697
Fix debugger pretty printing of BTrees
Mark-Simulacrum Mar 18, 2020
a9a8151
Rollup merge of #67888 - Zoxc:metadata-prefetch, r=matthewjasper
Dylan-DPC Mar 19, 2020
28e7089
Rollup merge of #69618 - hniksic:mem-forget-doc-fix, r=RalfJung
Dylan-DPC Mar 19, 2020
6312352
Rollup merge of #70103 - GuillaumeGomez:cleanup-e0437, r=Dylan-DPC
Dylan-DPC Mar 19, 2020
fd4b965
Rollup merge of #70111 - Mark-Simulacrum:btree-no-shared, r=cuviper
Dylan-DPC Mar 19, 2020
52711e5
Rollup merge of #70131 - Aaron1011:fix/issue-55099-test, r=nikomatsakis
Dylan-DPC Mar 19, 2020
2415742
Rollup merge of #70133 - hermitcore:libpanic_unwind, r=nikomatsakis
Dylan-DPC Mar 19, 2020
ef9ac42
Rollup merge of #70145 - lzutao:patch-1, r=Dylan-DPC
Dylan-DPC Mar 19, 2020
80b8c13
Rollup merge of #70146 - GuillaumeGomez:cleanup-e0438, r=Dylan-DPC
Dylan-DPC Mar 19, 2020
44fdd5a
Rollup merge of #70150 - rust-lang:accept-felixes-typo, r=Mark-Simula…
Dylan-DPC Mar 19, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Prefetch exported symbols
  • Loading branch information
Zoxc committed Mar 19, 2020
commit 03af82bb0cc425ff7d4518f36a80a5cb26b6a821
13 changes: 9 additions & 4 deletions src/librustc_metadata/rmeta/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1726,10 +1726,15 @@ pub(super) fn encode_metadata(tcx: TyCtxt<'_>) -> EncodedMetadata {
|| {
// Prefetch some queries used by metadata encoding
tcx.dep_graph.with_ignore(|| {
par_for_each_in(tcx.mir_keys(LOCAL_CRATE), |&def_id| {
tcx.optimized_mir(def_id);
tcx.promoted_mir(def_id);
});
join(
|| {
par_for_each_in(tcx.mir_keys(LOCAL_CRATE), |&def_id| {
tcx.optimized_mir(def_id);
tcx.promoted_mir(def_id);
})
},
|| tcx.exported_symbols(LOCAL_CRATE),
);
})
},
)
Expand Down