about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/src/lib.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-07-04 18:06:20 +0000
committerbors <bors@rust-lang.org>2025-07-04 18:06:20 +0000
commite3843659e9f65f589d184d1221ac6149d5fa07b5 (patch)
treeed34e6f3f36388cbbfc3e4a208b0209cf2756a9a /compiler/rustc_codegen_gcc/src/lib.rs
parent0c4fa2690de945f062668acfc36b3f8cfbd013e2 (diff)
parent17ce06a45958c41917de18641a693ec095d7d389 (diff)
downloadrust-e3843659e9f65f589d184d1221ac6149d5fa07b5.tar.gz
rust-e3843659e9f65f589d184d1221ac6149d5fa07b5.zip
Auto merge of #114669 - cjgillot:metadata-wp, r=petrochenkov
Make metadata a workproduct and reuse it

This PR aims to skip the generation of metadata by reusing the infrastructure that already exists for compiled codegen-units, namely "workproducts".

This can yield substantial gains (~10%) when we can demonstrate that metadata does not change between an incremental session and the next. This is the case if the crate is unchanged, or if all the changes are in upstream crates and have no effect on it. This latter case is most interesting, as it arises regularly for users with several crates in their workspace.

TODO:
- [x] Materialize the fact that metadata encoding relies on the relative order of definitions;
- [x] Refactor the handling of doc links.
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/lib.rs')
0 files changed, 0 insertions, 0 deletions