Repository navigation
1.97 beta regression: "conflicting implementations of trait" #157407
Copy link
Copy link
Closed
Labels
A-coherenceArea: CoherenceArea: CoherenceA-trait-systemArea: Trait systemArea: Trait systemC-bugCategory: This is a bug.Category: This is a bug.P-highHigh priorityHigh priorityS-has-bisectionStatus: A bisection has been found for this issueStatus: A bisection has been found for this issueS-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueStatus: A Minimal Complete and Verifiable Example has been found for this issueT-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Description
This regression was discovered by the 1.97 beta crater run.
[INFO] [stdout] error[E0119]: conflicting implementations of trait `FromRow<'_, PgRow>` for type `ChallengeRecord`
[INFO] [stdout] --> src/activities.rs:58:37
[INFO] [stdout] |
[INFO] [stdout] 58 | #[derive(Clone, Debug, Deserialize, FromRow, PartialEq, Serialize)]
[INFO] [stdout] | ^^^^^^^ conflicting implementation for `ChallengeRecord`
[INFO] [stdout] ...
[INFO] [stdout] 114 | impl FromRow<'_, PgRow> for ChallengeRecord {
[INFO] [stdout] | ------------------------------------------- first implementation here
[INFO] [stdout] |
[INFO] [stdout] = note: downstream crates may implement trait `sqlx::Decode<'_, _>` for type `activities::ActivityType`
[INFO] [stdout] = note: downstream crates may implement trait `sqlx::Type<_>` for type `activities::ActivityType`
[INFO] [stdout] = note: this error originates in the derive macro `FromRow` (in Nightly builds, run with -Z macro-backtrace for more info)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-coherenceArea: CoherenceArea: CoherenceA-trait-systemArea: Trait systemArea: Trait systemC-bugCategory: This is a bug.Category: This is a bug.P-highHigh priorityHigh priorityS-has-bisectionStatus: A bisection has been found for this issueStatus: A bisection has been found for this issueS-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueStatus: A Minimal Complete and Verifiable Example has been found for this issueT-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Activity
theemathas commentedon Jun 5, 2026
Smaller reproducer:
Error on beta:
theemathas commentedon Jun 5, 2026
Minimized:
dep/src/lib.rs
src/lib.rs
Error output on beta
theemathas commentedon Jun 5, 2026
Bisection results:
Regressed in #155767. cc @adminwhite @lcnr
6 remaining items
lcnr commentedon Jun 8, 2026
see the discussion on zulip https://rust-lang.zulipchat.com/#narrow/channel/326866-t-types.2Fnominated/topic/.23157407.3A.201.2E97.20beta.20regression.3A.20.22conflicting.20implementations.E2.80.A6/with/601113797
bit-aloo commentedon Jun 8, 2026
@rustbot claim
Auto merge of #157617 - Shourya742:2026-06-08-donot-eagerly-normalize…
Auto merge of #157617 - Shourya742:2026-06-08-donot-eagerly-normalize…
theemathas commentedon Jun 13, 2026
Reopening to track beta backport.
Auto merge of #157617 - Shourya742:2026-06-08-donot-eagerly-normalize…
apiraino commentedon Jun 25, 2026
I assume this issue has been discussed by T-types (see comment)
@rustbot label -i-types-nominated
theemathas commentedon Jun 26, 2026
Fixed by #158420