-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Improve E0211 error diagnostic #29260
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
Conversation
@@ -2348,8 +2348,8 @@ For information on the design of the orphan rules, see [RFC 1023]. | |||
"##, | |||
|
|||
E0211: r##" | |||
You used an intrinsic function which doesn't correspond to its | |||
definition. Erroneous code example: | |||
You used a function/type which doesn't correspond to its |
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.
"You used a function or type which doesn't fit the requirements for where it was used"
(definition is wrong here)
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.
I thought it was an invalid type/function which didn't correspond to what was expected. Whar is still wrong ?
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.
Not all of these have a corresponding "definition"
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.
Which one doesn't have then ? And what "global" explanation would you give instead ?
20789c4
to
10b0a51
Compare
} | ||
``` | ||
|
||
The second case example is a bit particular : main function must always |
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.
the main function
10b0a51
to
77053e2
Compare
Updated ! |
@bors r+ rollup |
📌 Commit 77053e2 has been approved by |
} | ||
``` | ||
|
||
The second case example is a bit particular : the main function must always |
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.
odd spacing here with the colon
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.
Oups, french habit...
r? @Manishearth
cc #29248