[rustdoc] Remove duplicated loop when computing doc cfgs by GuillaumeGomez · Pull Request #138755 · rust-lang/rust (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation11 Commits1 Checks6 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

GuillaumeGomez

@rustbot rustbot 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

Mar 20, 2025

@rust-log-analyzer

This comment has been minimized.

@camelid

Thanks! Should be able to take a look this weekend.

@GuillaumeGomez

camelid

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Nice find.

@camelid

@bors

📌 Commit 9e6848b has been approved by camelid

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

Mar 23, 2025

@jieyouxu

FYI this probably merge-conflicts with #138293 (noticed in rollup #138853).

@GuillaumeGomez

I'll rebase once merged then. ;)

bors added a commit to rust-lang-ci/rust that referenced this pull request

Mar 23, 2025

@bors

bors added a commit to rust-lang-ci/rust that referenced this pull request

Mar 23, 2025

@bors

bors added a commit to rust-lang-ci/rust that referenced this pull request

Mar 23, 2025

@bors

bors added a commit to rust-lang-ci/rust that referenced this pull request

Mar 24, 2025

@bors

Rollup of 10 pull requests

Successful merges:

Failed merges:

r? @ghost @rustbot modify labels: rollup

@bors

@bors bors added S-waiting-on-author

Status: This is awaiting some action (such as code changes or more information) from the author.

and removed S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

labels

Mar 24, 2025

@GuillaumeGomez

@GuillaumeGomez

@bors

📌 Commit d9f250a has been approved by camelid

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-author

Status: This is awaiting some action (such as code changes or more information) from the author.

labels

Mar 24, 2025

TaKO8Ki added a commit to TaKO8Ki/rust that referenced this pull request

Mar 24, 2025

@TaKO8Ki

… r=camelid

[rustdoc] Remove duplicated loop when computing doc cfgs

Working on implementing https://github.com/rust-lang/rfcs/blob/master/text/3631-rustdoc-cfgs-handling.md and found this weird case where the first loop was actually not doing anything since we were passing cfg(...) to Cfg::parse instead of cfg(...) items.

Well, that should be a first nice cleanup before the rest comes in.

cc @notriddle r? @camelid

TaKO8Ki added a commit to TaKO8Ki/rust that referenced this pull request

Mar 24, 2025

@TaKO8Ki

… r=camelid

[rustdoc] Remove duplicated loop when computing doc cfgs

Working on implementing https://github.com/rust-lang/rfcs/blob/master/text/3631-rustdoc-cfgs-handling.md and found this weird case where the first loop was actually not doing anything since we were passing cfg(...) to Cfg::parse instead of cfg(...) items.

Well, that should be a first nice cleanup before the rest comes in.

cc @notriddle r? @camelid

bors added a commit to rust-lang-ci/rust that referenced this pull request

Mar 25, 2025

@bors

bors added a commit to rust-lang-ci/rust that referenced this pull request

Mar 25, 2025

@bors

bors added a commit to rust-lang-ci/rust that referenced this pull request

Mar 25, 2025

@bors

bors added a commit to rust-lang-ci/rust that referenced this pull request

Mar 25, 2025

@bors

rust-timer added a commit to rust-lang-ci/rust that referenced this pull request

Mar 25, 2025

@rust-timer

Rollup merge of rust-lang#138755 - GuillaumeGomez:rm-duplicated-loop, r=camelid

[rustdoc] Remove duplicated loop when computing doc cfgs

Working on implementing https://github.com/rust-lang/rfcs/blob/master/text/3631-rustdoc-cfgs-handling.md and found this weird case where the first loop was actually not doing anything since we were passing cfg(...) to Cfg::parse instead of cfg(...) items.

Well, that should be a first nice cleanup before the rest comes in.

cc @notriddle r? @camelid

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.