Skip to content

Use all_impls instead of handrolling it#156148

Open
oli-obk wants to merge 1 commit intorust-lang:mainfrom
oli-obk:all_impls
Open

Use all_impls instead of handrolling it#156148
oli-obk wants to merge 1 commit intorust-lang:mainfrom
oli-obk:all_impls

Conversation

@oli-obk
Copy link
Copy Markdown
Contributor

@oli-obk oli-obk commented May 4, 2026

just found this while looking at other things

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels May 4, 2026
Copy link
Copy Markdown
Member

@lqd lqd left a comment

Choose a reason for hiding this comment

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

Good catch.

r=me w/ nit

View changes since this review

.collect::<Vec<_>>();
if !types.is_empty() {
let len = types.len();
let post = if types.len() > 9 {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

might as well

Suggested change
let post = if types.len() > 9 {
let post = if len > 9 {

.collect::<Vec<_>>();
if !types.is_empty() {
let len = types.len();
let post = if types.len() > 9 {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

might as well

Suggested change
let post = if types.len() > 9 {
let post = if len > 9 {

.collect::<Vec<_>>();
if !types.is_empty() {
let len = types.len();
let post = if types.len() > 9 {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

might as well

Suggested change
let post = if types.len() > 9 {
let post = if len > 9 {

Copy link
Copy Markdown
Member

@lqd lqd left a comment

Choose a reason for hiding this comment

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

Good catch.

r=me w/ nit

View changes since this review

@lqd
Copy link
Copy Markdown
Member

lqd commented May 4, 2026

Great job at idempotency GH 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler 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