Skip to content
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

Fix unwanted merge of inline doc comments for impl blocks #103523

Merged
merged 2 commits into from
Oct 28, 2022

Conversation

GuillaumeGomez
Copy link
Member

Fixes #102909.

We need this merge mechanism for inlined items but it's completely unwanted for impl blocks (at least the doc comments are, not the other attributes) since we want to keep what cfg() is put on the pub use or other attributes.

r? @notriddle

@rustbot rustbot added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Oct 25, 2022
@rustbot
Copy link
Collaborator

rustbot commented Oct 25, 2022

Some changes occurred in src/librustdoc/clean/types.rs

cc @camelid

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 25, 2022
@GuillaumeGomez GuillaumeGomez changed the title Fix unwated merge of inline doc comments for impl blocks Fix unwanted merge of inline doc comments for impl blocks Oct 25, 2022
src/librustdoc/clean/inline.rs Outdated Show resolved Hide resolved
src/librustdoc/clean/inline.rs Outdated Show resolved Hide resolved
src/librustdoc/clean/types.rs Outdated Show resolved Hide resolved
@GuillaumeGomez
Copy link
Member Author

Removed the forgotten debug code.

@notriddle
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Oct 28, 2022

📌 Commit a4279a1 has been approved by notriddle

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 28, 2022
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Oct 28, 2022
…impl-block, r=notriddle

Fix unwanted merge of inline doc comments for impl blocks

Fixes rust-lang#102909.

We need this merge mechanism for inlined items but it's completely unwanted for impl blocks (at least the doc comments are, not the other attributes) since we want to keep what `cfg()` is put on the `pub use` or other attributes.

r? `@notriddle`
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 28, 2022
…iaskrgr

Rollup of 5 pull requests

Successful merges:

 - rust-lang#102642 (Add tests for static async functions in traits)
 - rust-lang#103283 (Add suggestions for unsafe impl error codes)
 - rust-lang#103523 (Fix unwanted merge of inline doc comments for impl blocks)
 - rust-lang#103550 (diagnostics: do not suggest static candidates as traits to import)
 - rust-lang#103641 (Don't carry MIR location in `ConstraintCategory::CallArgument`)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 2f02cf8 into rust-lang:master Oct 28, 2022
@rustbot rustbot added this to the 1.66.0 milestone Oct 28, 2022
@GuillaumeGomez GuillaumeGomez deleted the inline-doc-comment-impl-block branch October 28, 2022 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

doc attributes on reexport of type are copied to inherent impls
5 participants