Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more regression tests #69192

Merged
merged 6 commits into from
Feb 18, 2020
Merged

Add more regression tests #69192

merged 6 commits into from
Feb 18, 2020

Conversation

JohnTitor
Copy link
Member

Closes #39618
Closes #51798
Closes #62894
Closes #63952
Closes #68653

r? @Centril

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 15, 2020
src/test/ui/macros/issue-62894.rs Outdated Show resolved Hide resolved
Comment on lines +14 to +22
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 {}
Copy link
Contributor

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

@Centril
Copy link
Contributor

Centril commented Feb 15, 2020

Oops; didn't mean to approve this. Everything except the specialization looks fine modulo nits.

@Centril
Copy link
Contributor

Centril commented Feb 15, 2020

@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.

@JohnTitor
Copy link
Member Author

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.

@Centril
Copy link
Contributor

Centril commented Feb 15, 2020

@bors r+

@bors
Copy link
Contributor

bors commented Feb 15, 2020

📌 Commit 2f39ec2 has been approved by Centril

@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 Feb 15, 2020
Centril added a commit to Centril/rust that referenced this pull request Feb 17, 2020
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Feb 18, 2020
bors added a commit that referenced this pull request Feb 18, 2020
Rollup of 5 pull requests

Successful merges:

 - #69181 (Change const eval to just return the value )
 - #69192 (Add more regression tests)
 - #69200 (Fix printing of `Yield` terminator)
 - #69205 (Allow whitespaces in revision flags)
 - #69233 (Clean up E0310 explanation)

Failed merges:

r? @ghost
@bors bors merged commit 2f39ec2 into rust-lang:master Feb 18, 2020
@JohnTitor JohnTitor deleted the add-tests branch February 18, 2020 21:00
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.
Projects
None yet
4 participants