Skip to content

Conversation

GuillaumeGomez
Copy link
Member

@rust-highfive
Copy link
Contributor

r? @pnkfelix

(rust_highfive has picked a reviewer for you, use r? to override)

@Susurrus
Copy link
Contributor

This looks good. Only comment I have on the text is whether this should include stating what the type was of the "something" that was called. I don't know if that'd every be useful to the user who sees this error in debugging though.

@QuietMisdreavus
Copy link
Contributor

I'm wondering what the purpose of making these different error codes is. It seems more like E0618 is just a special case of E0619 at the moment. The latter looks like a catch-all "you called something that can't be called" error, while the former is specifically about unit types? Would it be a problem to make them use the same error code?

@GuillaumeGomez
Copy link
Member Author

@QuietMisdreavus: I was wondering about this and I think I'll go this way.

@aidanhs
Copy link
Contributor

aidanhs commented Jun 15, 2017

Bunch of travis failures e.g.

[00:40:40] error: /checkout/src/test/compile-fail/E0618.rs:16: unexpected "error": '16:5: 16:15: expected function, found `X` [E0618]'
[00:40:40] 
[00:40:40] error: /checkout/src/test/compile-fail/E0618.rs:16: expected error not found: expected function, found `X::Entry` [E0618]
[00:40:40] 

@aidanhs aidanhs added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Jun 15, 2017
@GuillaumeGomez
Copy link
Member Author

Fixed CI.

@QuietMisdreavus
Copy link
Contributor

Looks good to me!

@bors r+

@bors
Copy link
Collaborator

bors commented Jun 15, 2017

📌 Commit f720e97 has been approved by QuietMisdreavus

@frewsxcv
Copy link
Contributor

@bors rollup

frewsxcv added a commit to frewsxcv/rust that referenced this pull request Jun 16, 2017
bors added a commit that referenced this pull request Jun 16, 2017
Rollup of 5 pull requests

- Successful merges: #42616, #42651, #42654, #42656, #42685
- Failed merges:
@bors bors merged commit f720e97 into rust-lang:master Jun 16, 2017
@GuillaumeGomez GuillaumeGomez deleted the error-codes-new branch June 18, 2017 16:05
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.

8 participants