Skip to content

rustdoc: Improve internal function name#154728

Open
aDotInTheVoid wants to merge 1 commit intorust-lang:mainfrom
aDotInTheVoid:doc-cfgz-nuts-gotem
Open

rustdoc: Improve internal function name#154728
aDotInTheVoid wants to merge 1 commit intorust-lang:mainfrom
aDotInTheVoid:doc-cfgz-nuts-gotem

Conversation

@aDotInTheVoid
Copy link
Copy Markdown
Member

This functions name totally contradicted what it did. And the only places it was used immediatly !ed it. Push the ! into the function, and rename it to make sense.

Should hopefully result in less head-scratching next time someone looks at this.

r? @GuillaumeGomez

This functions name totally contradicted what it did. And the only
places it was used immediatly `!`ed it. Push the `!` into the function,
and rename it to make sense.

Should hopefully result in less head-scratching next time someone looks
at this.
@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 Apr 2, 2026
@aDotInTheVoid aDotInTheVoid added the C-cleanup Category: PRs that clean code up or issues documenting cleanup. label Apr 2, 2026
@GuillaumeGomez
Copy link
Copy Markdown
Member

Oof, yeah that was a bad name. Thanks for the improvement! r=me once CI pass.

@aDotInTheVoid
Copy link
Copy Markdown
Member Author

@bors r=GuillaumeGomez rollup

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors bot commented Apr 2, 2026

📌 Commit e469da4 has been approved by GuillaumeGomez

It is now in the queue for this repository.

@rust-bors rust-bors bot 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 Apr 2, 2026
jhpratt added a commit to jhpratt/rust that referenced this pull request Apr 3, 2026
… r=GuillaumeGomez

rustdoc: Improve internal function name

This functions name totally contradicted what it did. And the only places it was used immediatly `!`ed it. Push the `!` into the function, and rename it to make sense.

Should hopefully result in less head-scratching next time someone looks at this.

r? @GuillaumeGomez
rust-bors bot pushed a commit that referenced this pull request Apr 3, 2026
Rollup of 6 pull requests

Successful merges:

 - #154444 (rustdoc ICE fix: When collecting `Deref` impls with their targets, skip the negative ones)
 - #154590 (Make #[cfg] suggest any or all on #[cfg(a, b)])
 - #154691 (core: Update the feature gate on `TryFrom<integer> for bool`)
 - #154697 (rustdoc: fix href of extern crates in search results)
 - #154728 (rustdoc: Improve internal function name)
 - #154732 (fix(std): avoid AT_MINSIGSTKSZ on uclibc targets)

Failed merges:

 - #154722 (fix(lints): Improve `ill_formed_attribute_input` with better help message)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-cleanup Category: PRs that clean code up or issues documenting cleanup. 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.

3 participants