librustdoc: 2024 edition! 🎊 by yotamofek · Pull Request #137722 · 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

Conversation16 Commits2 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 }})

yotamofek

@rustbot

r? @notriddle

rustbot has assigned @notriddle.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

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

T-rustdoc-frontend

Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.

labels

Feb 27, 2025

notriddle

Comment on lines -126 to +119

fn render_assoc_items<'b>(&'b self) -> impl fmt::Display + Captures<'a> + 'b + Captures<'cx> {
fmt::from_fn(move |f
let (item, cx) = self.item_and_cx();
let def_id = item.item_id.expect_def_id();
let v = render_assoc_items(cx, item, def_id, AssocItemRender::All);
write!(f, "{v}")
})
fn render_assoc_items(&self) -> impl fmt::Display {
let (item, cx) = self.item_and_cx();
let def_id = item.item_id.expect_def_id();
render_assoc_items(cx, item, def_id, AssocItemRender::All)

Choose a reason for hiding this comment

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

This is a change that can actually affect execution, not just lifetime metadata.

This still looks file (render_assoc_items itself returns impl Display), but it's still worth tracking.

Choose a reason for hiding this comment

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

Yeah, you're right, but seeing as I added all of these fmt::from_fn()s myself, I'm confident about deleting them again. :)

@notriddle

@bors

📌 Commit 7d263b0 has been approved by notriddle

It is now in the queue for this repository.

@bors

🌲 The tree is currently closed for pull requests below priority 100. This pull request will be tested once the tree is reopened.

@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

Feb 27, 2025

@compiler-errors

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

Mar 2, 2025

@matthiaskrgr

… r=notriddle

librustdoc: 2024 edition! 🎊

Like rust-lang#137333 , but for rustdoc 😁

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

Mar 2, 2025

@tgross35

… r=notriddle

librustdoc: 2024 edition! 🎊

Like rust-lang#137333 , but for rustdoc 😁

@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 2, 2025

@yotamofek

@notriddle had to fix conflicts with #137425 , would appreciate another review/approval (should be quick - nothing actually changed from the last iteration)

@aDotInTheVoid

@rustbot rustbot added S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

and removed S-waiting-on-author

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

labels

Mar 2, 2025

@notriddle

@bors

📌 Commit 74c783c 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

Mar 2, 2025

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

Mar 4, 2025

@matthiaskrgr

… r=notriddle

librustdoc: 2024 edition! 🎊

Like rust-lang#137333 , but for rustdoc 😁

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

Mar 4, 2025

@matthiaskrgr

… r=notriddle

librustdoc: 2024 edition! 🎊

Like rust-lang#137333 , but for rustdoc 😁

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

Mar 4, 2025

@bors

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

Mar 4, 2025

@jhpratt

… r=notriddle

librustdoc: 2024 edition! 🎊

Like rust-lang#137333 , but for rustdoc 😁

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

Mar 4, 2025

@bors

Rollup of 13 pull requests

Successful merges:

Failed merges:

r? @ghost @rustbot modify labels: rollup

@matthiaskrgr

@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 4, 2025

@yotamofek

@yotamofek

Get rid of the Captures hack

@yotamofek

@rustbot rustbot added S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

and removed S-waiting-on-author

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

labels

Mar 4, 2025

@notriddle

@bors

📌 Commit 6e86aa1 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

Mar 4, 2025

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

Mar 5, 2025

@bors

…kingjubilee

Rollup of 6 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

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

Mar 5, 2025

@rust-timer

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.

T-rustdoc-frontend

Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.