Skip to content

Conversation

@compiler-errors
Copy link
Member

Fixes #134632 by explaining why the error must be

@rustbot
Copy link
Collaborator

rustbot commented Dec 22, 2024

r? @oli-obk

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

@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 Dec 22, 2024
LL | impl MyTrait for String { }
| ^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `String`
|
= note: upstream crates may add a new impl of trait `std::marker::Copy` for type `std::string::String` in future versions
Copy link
Member Author

Choose a reason for hiding this comment

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

this note^

@oli-obk
Copy link
Contributor

oli-obk commented Dec 22, 2024

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Dec 22, 2024

📌 Commit 62d1f4f has been approved by oli-obk

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 22, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 22, 2024
…iaskrgr

Rollup of 4 pull requests

Successful merges:

 - rust-lang#134599 (Detect invalid exprs in parser used by pretty-printer tests)
 - rust-lang#134602 (Document `PointerLike` implementation restrictions.)
 - rust-lang#134635 (Don't ICE on illegal `dyn*` casts)
 - rust-lang#134639 (Make sure we note ambiguity causes on positive/negative impl conflicts)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 4d166cc into rust-lang:master Dec 22, 2024
6 checks passed
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Dec 22, 2024
Rollup merge of rust-lang#134639 - compiler-errors:negative-ambiguity-causes, r=oli-obk

Make sure we note ambiguity causes on positive/negative impl conflicts

Fixes rust-lang#134632 by explaining why the error must be
@rustbot rustbot added this to the 1.85.0 milestone Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. 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.

Positive and Negative Trait Implementations Clash Unexpectedly

4 participants