Document all public items in rustc_incremental#90407
Conversation
|
r? @cjgillot (rust-highfive has picked a reviewer for you, use r? to override) |
|
Thank you, @r00ster91! I forgot the recommend style. |
3e02dc8 to
3ee4b6b
Compare
There was a problem hiding this comment.
What is the difference between the return values of these functions? Can you expand on this in the doc comments?
There was a problem hiding this comment.
I removed references to "the current session". The signature tells the story, here, it seems.
How do these function docs look to you, @cjgillot?
There was a problem hiding this comment.
Can you expand a bit on what those path represent? I mean:
- what are stored in all these files?
- the difference between dep-graph and staging dep-graph?
- what are work products?
There was a problem hiding this comment.
I'm not sure how to describe the query cache here.
There was a problem hiding this comment.
It garbage collects all incremental session directories except the current session, right?
There was a problem hiding this comment.
Good question. I'll double check.
There was a problem hiding this comment.
The garbage collection logic is complex enough here that I wouldn't feel comfortable discussing its behavior in the public doc comment without input from someone familiar with this code. (Although I suspect you are right!)
cac82a2 to
cc9c544
Compare
d2f3a3a to
1eea8ac
Compare
There was a problem hiding this comment.
Can you expand a bit on what those path represent? I mean:
- what are stored in all these files?
- the difference between dep-graph and staging dep-graph?
- what are work products?
There was a problem hiding this comment.
This function is only used once, with the current session's directory. Is there a reason to keep it, or should it be replaced by dep_graph_path?
There was a problem hiding this comment.
If it's inlined, DEP_GRAPH_FILENAME has to be made public. I think it makes sense to have all these in one place, even if the function is only used once.
There was a problem hiding this comment.
I don't mean inlining it. I mean using dep_graph_path instead.
There was a problem hiding this comment.
This function is never used outside the crate.
|
☔ The latest upstream changes (presumably #90731) made this pull request unmergeable. Please resolve the merge conflicts. |
3941f5f to
a358d3b
Compare
|
☔ The latest upstream changes (presumably #91019) made this pull request unmergeable. Please resolve the merge conflicts. |
|
r=me after rebase. Thanks @pierwill ! |
3602c51 to
fa054cf
Compare
|
@bors r+ rollup |
|
📌 Commit fa054cf has been approved by |
…s, r=cjgillot Document all public items in `rustc_incremental` Also: - Review and edit current docs - Enforce documentation for the module.
|
@bors r- |
Looking at this now. |
Also: - Review and edit current docs - Enforce documentation for crate Co-authored-by: r00ster <r00ster91@protonmail.com> Co-authored-by: Camille Gillot <gillot.camille@gmail.com>
fa054cf to
41f7692
Compare
|
This should be ready now. @matthiaskrgr |
|
@rustbot ready |
|
@bors r+ rollup |
|
📌 Commit 41f7692 has been approved by |
…s, r=cjgillot Document all public items in `rustc_incremental` Also: - Review and edit current docs - Enforce documentation for the module.
…s, r=cjgillot Document all public items in `rustc_incremental` Also: - Review and edit current docs - Enforce documentation for the module.
…s, r=cjgillot Document all public items in `rustc_incremental` Also: - Review and edit current docs - Enforce documentation for the module.
…askrgr Rollup of 10 pull requests Successful merges: - rust-lang#90407 (Document all public items in `rustc_incremental`) - rust-lang#90897 (Fix incorrect stability attributes) - rust-lang#91105 (Fix method name reference in stream documentation) - rust-lang#91325 (adjust const_eval_select documentation) - rust-lang#91470 (code-cov: generate dead functions with private/default linkage) - rust-lang#91482 (Update documentation to use `from()` to initialize `HashMap`s and `BTreeMap`s) - rust-lang#91524 (Fix Vec::extend_from_slice docs) - rust-lang#91575 (Fix ICE on format string of macro with secondary-label) - rust-lang#91625 (Remove redundant [..]s) - rust-lang#91646 (Fix documentation for `core::ready::Ready`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Also: