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

Suppress trait errors that are implied by other errors #41840

Merged
merged 1 commit into from
Jun 16, 2017

Conversation

arielb1
Copy link
Contributor

@arielb1 arielb1 commented May 8, 2017

this is currently a hack and should be cleaned up somewhat. Posting this to get some feedback.

r? @nikomatsakis
cc @estebank

@@ -17,77 +17,70 @@ use std::ops::*;
struct AllTheRanges {
a: Range<usize>,
//~^ ERROR PartialOrd
Copy link
Contributor

Choose a reason for hiding this comment

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

While you're at it, could you clean these up to use //~| instead of //~^^^^^?

@arielb1 arielb1 added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label May 9, 2017
Copy link
Contributor

@nikomatsakis nikomatsakis left a comment

Choose a reason for hiding this comment

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

The general approach seems reasonably good to me! Sorry for taking so long to give feedback. I'm a bit unsure if we should maybe try to go further?

@carols10cents
Copy link
Member

Friendly ping @arielb1, keeping this on your radar!

@bors
Copy link
Contributor

bors commented May 23, 2017

☔ The latest upstream changes (presumably #41559) made this pull request unmergeable. Please resolve the merge conflicts.

@arielb1
Copy link
Contributor Author

arielb1 commented May 23, 2017

status: now that I'm done with the segfaults on #41917 I'll look into this - I'll try to get it done by Monday,

@aidanhs
Copy link
Member

aidanhs commented Jun 1, 2017

Hi @arielb1, how are you getting on with this?

@arielb1
Copy link
Contributor Author

arielb1 commented Jun 4, 2017

I am. Just a little bit busy with other stuff.

@nikomatsakis
Copy link
Contributor

@arielb1 I'm going to close this PR for now just to clear up my queue. Feel free to re-open once you have updates available!

@Mark-Simulacrum
Copy link
Member

@nikomatsakis You never closed this PR, so I'm going to assume that was unintentional and close it now. Please do reopen if I'm wrong!

@arielb1 arielb1 reopened this Jun 11, 2017
@nikomatsakis
Copy link
Contributor

@arielb1 I guess you'd prefer to keep the PR open? :) seems fine.

@arielb1 arielb1 force-pushed the deduplicate-selection-errors branch from 13ffe4a to 06d6fb2 Compare June 14, 2017 19:34
@arielb1 arielb1 changed the title [WIP] suppress trait errors that are implied by other errors Suppress trait errors that are implied by other errors Jun 14, 2017
Instead of suppressing only trait errors that are "exact duplicates",
display only the "most high-level" error when there are multiple trait
errors with the same span that imply each-other.

e.g. when there are both `[closure]: Fn` and `[closure]: FnOnce`, omit
displaying the `[closure]: FnOnce` bound.
@arielb1 arielb1 force-pushed the deduplicate-selection-errors branch from 06d6fb2 to 7b9519a Compare June 14, 2017 20:35
@nikomatsakis
Copy link
Contributor

nikomatsakis commented Jun 15, 2017

@bors r+

(if you feel, maybe address the nit that @estebank pointed out about converting //~^...^ to //~|, but doesn't seem criticial to me)

@bors
Copy link
Contributor

bors commented Jun 15, 2017

📌 Commit 7b9519a has been approved by nikomatsakis

@bors
Copy link
Contributor

bors commented Jun 15, 2017

💡 This pull request was already approved, no need to approve it again.

  • There's another pull request that is currently being tested, blocking this pull request: Upgrade LLVM #42410

@bors
Copy link
Contributor

bors commented Jun 15, 2017

📌 Commit 7b9519a has been approved by nikomatsakis

@bors
Copy link
Contributor

bors commented Jun 15, 2017

⌛ Testing commit 7b9519a with merge e6861f5...

@bors
Copy link
Contributor

bors commented Jun 15, 2017

💔 Test failed - status-appveyor

@arielb1
Copy link
Contributor Author

arielb1 commented Jun 16, 2017

@bors
Copy link
Contributor

bors commented Jun 16, 2017

⌛ Testing commit 7b9519a with merge 787d9da...

bors added a commit that referenced this pull request Jun 16, 2017
…tsakis

Suppress trait errors that are implied by other errors

this is currently a hack and should be cleaned up somewhat. Posting this to get some feedback.

r? @nikomatsakis
cc @estebank
@bors
Copy link
Contributor

bors commented Jun 16, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: nikomatsakis
Pushing 787d9da to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants