Skip to content

Remove useless attributes in merged doctest generated code - #129192

Merged
bors merged 1 commit into
rust-lang:masterfrom
GuillaumeGomez:rm-useless-merged-doctest-attrs
Aug 17, 2024
Merged

Remove useless attributes in merged doctest generated code#129192
bors merged 1 commit into
rust-lang:masterfrom
GuillaumeGomez:rm-useless-merged-doctest-attrs

Conversation

@GuillaumeGomez

Copy link
Copy Markdown
Member

I took another look at the generated code for merged doctests and it seems like those attributes are only useful when running rustc --test, which isn't the case for merged doctests. Less code generated. \o/

r? @notriddle

@rustbotrustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Aug 17, 2024
@notriddle

Copy link
Copy Markdown
Contributor

@bors r+

@bors

bors commented Aug 17, 2024

Copy link
Copy Markdown
Collaborator

📌 Commit 7bde314 has been approved by notriddle

It is now in the queue for this repository.

@borsbors 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 Aug 17, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 17, 2024
…iaskrgr
Rollup of 6 pull requests
Successful merges:
- rust-lang#128989 (Emit an error for invalid use of the linkage attribute)
- rust-lang#129167 (mir/pretty: use `Option` instead of `Either<Once, Empty>`)
- rust-lang#129168 (Return correct HirId when finding body owner in diagnostics)
- rust-lang#129191 (rustdoc-json: Clean up serialization and printing.)
- rust-lang#129192 (Remove useless attributes in merged doctest generated code)
- rust-lang#129196 (Remove a useless ref/id/ref round-trip from `pattern_from_hir`)
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 8a023b3 into rust-lang:masterAug 17, 2024
@rustbotrustbot added this to the 1.82.0 milestone Aug 17, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Aug 17, 2024
Rollup merge of rust-lang#129192 - GuillaumeGomez:rm-useless-merged-doctest-attrs, r=notriddle
Remove useless attributes in merged doctest generated code
I took another look at the generated code for merged doctests and it seems like those attributes are only useful when running `rustc --test`, which isn't the case for merged doctests. Less code generated. \o/
r? `@notriddle`
@GuillaumeGomez
GuillaumeGomez deleted the rm-useless-merged-doctest-attrs branch August 17, 2024 19:44
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-rustdocRelevant 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.

4 participants

@GuillaumeGomez@notriddle@bors@rustbot