Skip to content

Check for duplicate trait impl item - #447

Merged
tiif merged 2 commits into
rust-lang:mainfrom
bit-aloo:2026-08-07-check-for-duplicate-trait-impl-item
Aug 22, 2026
Merged

Check for duplicate trait impl item#447
tiif merged 2 commits into
rust-lang:mainfrom
bit-aloo:2026-08-07-check-for-duplicate-trait-impl-item

Conversation

@bit-aloo

@bit-aloo bit-aloo commented Aug 7, 2026

Copy link
Copy Markdown
Member

What does this PR do?

We didn't had any check for duplicate trait impl item. This PR adds that. I am currently working through #419, and going across all checks to understand better. I believe there might be more such cases, I will try to spot more.

AI disclosure

  • I did not use any AI tools

@rustbot

rustbot commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Thanks for contributing to formality! :)
A reviewer will take a look at your PR within a week or two. If not, come talk to us on https://rust-lang.zulipchat.com/#narrow/channel/402470-t-types.2Fformality

@tiif tiif left a comment

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.

Thanks! Other than the nits, the rest are fine to me.

(the fmt in my suggestion is off, you will need to run cargo fmt after applying the change)
View changes since this review

Comment thread crates/formality-rust/src/check/impls.rs Outdated
Comment thread crates/formality-rust/src/check/impls.rs Outdated
@bit-aloo
bit-aloo force-pushed the 2026-08-07-check-for-duplicate-trait-impl-item branch 2 times, most recently from b2b852f to 86453cb Compare August 12, 2026 13:25
@bit-aloo
bit-aloo requested a review from tiif August 12, 2026 13:26
@bit-aloo
bit-aloo force-pushed the 2026-08-07-check-for-duplicate-trait-impl-item branch from 86453cb to a0ef5dd Compare August 12, 2026 13:31
@bit-aloo
bit-aloo force-pushed the 2026-08-07-check-for-duplicate-trait-impl-item branch from a0ef5dd to 7e55561 Compare August 12, 2026 13:49
@rustbot

rustbot commented Aug 12, 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.

@bit-aloo
bit-aloo force-pushed the 2026-08-07-check-for-duplicate-trait-impl-item branch from 7e55561 to 46d9387 Compare August 12, 2026 14:29

@tiif tiif left a comment

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.

@tiif
tiif added this pull request to the merge queue Aug 22, 2026
Merged via the queue into rust-lang:main with commit a207654 Aug 22, 2026
5 checks passed
@bit-aloo
bit-aloo deleted the 2026-08-07-check-for-duplicate-trait-impl-item branch August 22, 2026 03:57
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.

3 participants