-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Improve E0512 error message #28957
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
Improve E0512 error message #28957
Conversation
|
r? @arielb1 (rust_highfive has picked a reviewer for you, use r? to override) |
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.
Reading now, I’d remove the “two” actually, I think, since that’s implied both by the function signature and list of types that come after the colon.
|
Looks like an improvement to me. |
52d44b7 to
2624772
Compare
|
Updated ! |
a37cfad to
35f8184
Compare
|
@GuillaumeGomez why did you drop the word "potentially" ? Do you think it unnecessary? |
|
Then it would be a "potential" error, no? If the types did have the same size, either we'd have another error or it'd be just fine. I don't see other possibility here. |
|
(I resolved my question with @GuillaumeGomez ; i had overlooked that this message is solely coming from |
|
@bors r+ |
1 similar comment
|
@bors r+ |
|
📌 Commit 35f8184 has been approved by |
|
⌛ Testing commit 35f8184 with merge 40a1e4f... |
|
💔 Test failed - auto-mac-64-opt |
|
|
@Manishearth: I'm still wondering what happened. I'm thinking about the error comment which could be invalid but it doesn't seem to... |
|
Those tests use |
|
@bors r+ |
|
📌 Commit a3f9fc6 has been approved by |
cc @nagisa