Skip to content

Conversation

@Jarcho
Copy link
Contributor

@Jarcho Jarcho commented Oct 31, 2025

Alternative to part of #14509.

changelog: none

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Oct 31, 2025
@rustbot
Copy link
Collaborator

rustbot commented Oct 31, 2025

r? @llogiq

rustbot has assigned @llogiq.
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

@Jarcho Jarcho force-pushed the lint_passes branch 2 times, most recently from 5b13034 to f5e4a01 Compare October 31, 2025 14:22
@llogiq
Copy link
Contributor

llogiq commented Oct 31, 2025

@blyxyas what do you think? The approach seems to offer us optimal sizing (because we know the array length up front) and good perf.

@rustbot

This comment has been minimized.

Copy link
Member

@blyxyas blyxyas left a comment

Choose a reason for hiding this comment

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

Looks good to me, I haven't benchmarked it, but I've never heard of a conversion from Vec to [T; N] that caused a performance regression.

View changes since this review

format!("Box::new(move |{ctor_arg}| Box::new({module_name}::{camel_name}::new(conf))),\n ",)
} else {
format!("store.register_{lint_pass}_pass(|{ctor_arg}| Box::new({module_name}::{camel_name}));\n ",)
format!("Box::new(|{ctor_arg}| Box::new({module_name}::{camel_name})),\n ",)
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason why those spaces are there? (After \n)

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess it's to start the next line with the right amount of indentation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah. It's so the marker comment stays indented.

Copy link
Member

Choose a reason for hiding this comment

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

In that case, +1 to the merge after the conflicts are resolved

@llogiq
Copy link
Contributor

llogiq commented Nov 13, 2025

r=me after a rebase

@rustbot
Copy link
Collaborator

rustbot commented Nov 14, 2025

This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@blyxyas blyxyas added this pull request to the merge queue Nov 14, 2025
Merged via the queue into rust-lang:master with commit c48592e Nov 14, 2025
11 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Nov 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants