-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Add more regression tests #69192
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add more regression tests #69192
Conversation
impl<T> Bar for T where T: Foo { | ||
fn bar(&self) {} | ||
} | ||
|
||
impl<T> Foo for T where T: Bar { | ||
fn foo(&self) {} | ||
} | ||
|
||
impl Foo for u64 {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks suspicions... There's no default
anywhere, yet logically, we have u64: Foo
, hence where T: Foo
is discharged, hence u64: Bar
, hence T: Bar
is discharged, and thus impl<T> Foo for T
applies (and so we have overlap).
cc @jonas-schievink (I thought this had been fixed?)
cc @matthewjasper & @nikomatsakis
Oops; didn't mean to approve this. Everything except the specialization looks fine modulo nits. |
@JohnTitor If you want to get this merged sooner we could also drop the specialization bit and revisit once the discussion has settled. :) If so, r=me with that test removed or a FIXME noting the question added to the specialization test, either at your option. |
On my local, the test shows SIGSEGV with old nightly mentioned in that issue so I feel it's worth to add this test. I'll add a FIXME note. |
@bors r+ |
📌 Commit 2f39ec2 has been approved by |
Add more regression tests Closes rust-lang#39618 Closes rust-lang#51798 Closes rust-lang#62894 Closes rust-lang#63952 Closes rust-lang#68653 r? @Centril
Add more regression tests Closes rust-lang#39618 Closes rust-lang#51798 Closes rust-lang#62894 Closes rust-lang#63952 Closes rust-lang#68653 r? @Centril
Closes #39618
Closes #51798
Closes #62894
Closes #63952
Closes #68653
r? @Centril