Skip to content

implement PartialEq<Vec<U>> for [T; N] and &[T; N] - #149045

Open
Qelxiros wants to merge 1 commit into
rust-lang:mainfrom
Qelxiros:array-vec-partialeq
Open

Qelxiros wants to merge 1 commit into
rust-lang:mainfrom
Qelxiros:array-vec-partialeq

Conversation

@Qelxiros

@Qelxiros Qelxiros commented Nov 18, 2025

Copy link
Copy Markdown
Contributor

View all comments

Closes #149017

@Centril you're mentioned in the FIXME; do you have thoughts on this?

@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. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Nov 18, 2025
@rustbot

rustbot commented Nov 18, 2025

Copy link
Copy Markdown
Collaborator

r? @JonathanBrouwer

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

@reddevilmidzy

Copy link
Copy Markdown
Member

How about adding the test mentioned in the issue?

fn main() {
    let x = vec![1];
    let y = [1];
    let _ = x == y;
    let _ = y == x;
}

@JonathanBrouwer

Copy link
Copy Markdown
Member

r? libs

@Mark-Simulacrum Mark-Simulacrum added needs-fcp This change is insta-stable, or significant enough to need a team FCP to proceed. S-waiting-on-t-libs-api [DEPRECATED; DO NOT USE] and removed T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 26, 2025
@Amanieu

Amanieu commented Jan 7, 2026

Copy link
Copy Markdown
Member

@bors r+

@bors

bors commented Jan 7, 2026

Copy link
Copy Markdown
Collaborator

📌 Commit 4274547 has been approved by Amanieu

It is now in the queue for this repository.

@rust-bors

rust-bors Bot commented Jan 7, 2026

Copy link
Copy Markdown
Contributor

📋 This PR cannot be approved because it currently has the following label: S-waiting-on-t-libs-api.

@bors

bors commented Jan 7, 2026

Copy link
Copy Markdown
Collaborator

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

@bors bors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Jan 7, 2026
@Amanieu

Amanieu commented Jan 7, 2026

Copy link
Copy Markdown
Member

@bors r-

@rust-bors rust-bors Bot added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Jan 7, 2026
@bors bors removed the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Jan 7, 2026
@Amanieu

Amanieu commented Jan 7, 2026

Copy link
Copy Markdown
Member

Actually this needs an FCP.

@rfcbot merge

@rust-rfcbot

Copy link
Copy Markdown
Collaborator

Error encounted:
Provided team `` is invalid

@Amanieu

Amanieu commented Jan 7, 2026

Copy link
Copy Markdown
Member

@rfcbot merge libs-api

@Qelxiros

Copy link
Copy Markdown
Contributor Author

@rustbot ready
(I think the labels are weird, but this certainly shouldn't be waiting on me)

@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 Jan 14, 2026
@Mark-Simulacrum Mark-Simulacrum removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 17, 2026
@theemathas

Copy link
Copy Markdown
Contributor

This could maybe cause type inference failures, so, let's do a crater run.

@bors try

@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request May 26, 2026
implement PartialEq<Vec<U>> for [T; N] and &[T; N]
@rust-bors

rust-bors Bot commented May 26, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: 1779a86 (1779a8680dcd39c56ed600627cf6742ef07ed78c, parent: 31a9463c6e2794a59ce57a8f37abc6966afc2a58)

@theemathas

Copy link
Copy Markdown
Contributor

@craterbot check

@craterbot

Copy link
Copy Markdown
Collaborator

👌 Experiment pr-149045 created and queued.
🤖 Automatically detected try build 1779a86
🔍 You can check out the queue and this experiment's details.

ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more

@craterbot craterbot added S-waiting-on-crater Status: Waiting on a crater run to be completed. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 26, 2026
@craterbot

Copy link
Copy Markdown
Collaborator

🚧 Experiment pr-149045 is now running

ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more

@craterbot

Copy link
Copy Markdown
Collaborator

🎉 Experiment pr-149045 is completed!
📊 43 regressed and 2 fixed (950352 total)
📊 5412 spurious results on the retry-regressed-list.txt, consider a retry1 if this is a significant amount.
📰 Open the summary report.

⚠️ If you notice any spurious failure please add them to the denylist!
ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more

Footnotes

  1. re-run the experiment with crates=https://crater-reports.s3.amazonaws.com/pr-149045/retry-regressed-list.txt

@craterbot craterbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-crater Status: Waiting on a crater run to be completed. labels Jun 5, 2026
@clarfonthey clarfonthey added T-libs Relevant to the library team, which will review and decide on the PR/issue. and removed T-libs-api [DEPRECATED; DO NOT USE] labels Aug 12, 2026
@rust-bors

This comment has been minimized.

@clarfonthey

Copy link
Copy Markdown
Contributor

r? libs

@rustbot rustbot assigned Darksonn and unassigned Amanieu Sep 16, 2026
@Darksonn

Copy link
Copy Markdown
Member

Next steps: Please rebase this and look at the crater report.

@rustbot author

@rustbot rustbot 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-review Status: Awaiting review from the assignee but also interested parties. labels Sep 17, 2026
@rustbot

rustbot commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Reminder, once the PR becomes ready for a review, use @rustbot ready.

@rustbot

rustbot commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main 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.

@Qelxiros

Copy link
Copy Markdown
Contributor Author

@rustbot ready
42 of the 43 crate failures look real, so I'm not sure where we go from here.

@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 Sep 17, 2026
@clarfonthey

Copy link
Copy Markdown
Contributor

My personal preference here would be to replace the PR with one that comments out the relevant lines and explains that they have inference regressions so we know to not try this again, but we could also just close this.

And yeah, looking at it, it makes sense, since the majority of the regressions are code calling as_ref on the LHS specifically to get around this problem, with the result becoming ambiguous instead.

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

Labels

disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. finished-final-comment-period The final comment period is finished for this PR / Issue. needs-fcp This change is insta-stable, or significant enough to need a team FCP to proceed. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. to-announce Announce this issue on triage meeting

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing impl PartialEq<Vec<T>> for [T; N]