Avoid duplicated query modifier comments.#153428
Avoid duplicated query modifier comments.#153428rust-bors[bot] merged 1 commit intorust-lang:mainfrom
Conversation
|
r? @JohnTitor rustbot has assigned @JohnTitor. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
r? @Zalathar |
|
|
1876e12 to
cf24b23
Compare
cf24b23 to
e79b2a1
Compare
This comment has been minimized.
This comment has been minimized.
e79b2a1 to
78c7d51
Compare
This comment has been minimized.
This comment has been minimized.
|
I rebased. |
|
Regarding the |
This comment has been minimized.
This comment has been minimized.
78c7d51 to
52b8040
Compare
This comment has been minimized.
This comment has been minimized.
|
I rebased. |
|
@Zalathar: any thoughts? |
|
I’ve spent hours trying to review this, but I keep getting discouraged by how much energy it would take to argue against the contentious parts. |
|
Huh... I thought this would be uncontroversial. Can you indicate which commits you think are contentious? |
52b8040 to
dfb80a8
Compare
This comment has been minimized.
This comment has been minimized.
|
@Zalathar: I have removed the first and third commits involving query modifier names, because That just leaves the query modifier comment de-duplication. If there is contention over the wording of the comments, I'm happy to use your suggestions. I'm also happy if you want to just take this over and do it yourself. I just want the duplication gone :) |
This comment has been minimized.
This comment has been minimized.
dfb80a8 to
ecaf22a
Compare
This comment has been minimized.
This comment has been minimized.
30553e7 to
8112cc8
Compare
This comment has been minimized.
This comment has been minimized.
8112cc8 to
ced819a
Compare
compiler/rustc_middle/src/queries.rs
Outdated
| //! - `separate_provide_extern`: Use separate provider functions for local and external crates. | ||
| //! - `feedable`: Allow the query result to be set from another query ("fed" externally). | ||
| //! For the list of modifiers, see | ||
| //! [`rustc_middle/src/query/modifiers.rs`](https://github.com/rust-lang/rust/blob/HEAD/compiler/rustc_middle/src/query/modifiers.rs). |
There was a problem hiding this comment.
Nit: Is there a specific reason for using a hardcoded web link here? I would have expected the target to be a Rust module path that gets resolved by rustdoc, i.e. rustc_middle::query::modifiers.
There was a problem hiding this comment.
Not sure, it was pre-existing. I've switched it to a normal link and done a local docs build to test that it works. The rendered rustdocs are nicer to look at that the source code in GitHub :)
By removing the ones in `compiler/rustc_middle/src/queries.rs`, and making `compiler/rustc_middle/src/query/modifiers.rs` the single source of truth.
ced819a to
16dcceb
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
Thanks for the adjustments. @bors r+ rollup |
…Zalathar Avoid duplicated query modifier comments. There is currently some duplication.
Rollup of 5 pull requests Successful merges: - #152258 (fixed VecDeque::splice() not filling the buffer correctly when resizing the buffer on start = end range) - #153691 (Miscellaneous tweaks) - #153766 (`try_execute_query` tweaks) - #153188 (implementation of `-Z min-recursion-limit`) - #153428 (Avoid duplicated query modifier comments.)
View all comments
There is currently some duplication.