-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Add new error codes in librustc #28353
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
630080a to
1d320ab
Compare
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.
Can’t this be generalised to the E0452? There seems really little use to differentiate between an empty name and a malformed attribute.
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.
This is quite hard to say... It can be generalised, but like this, we have a very precise error code for each.
1d320ab to
7358a5e
Compare
|
@Manishearth: I'm done for |
src/librustc/diagnostics.rs
Outdated
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'm not sure what this sentence is trying to say 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 wanted to replace the message from the compiler when something is unstable or deprecated with the tag #[deprecated] by some kind of compilation message. But it seems it's not possible. I hope I was more clear...
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.
"It is not possible to use stability attributes outside of the standard library. Also, for now, it is not possible to write deprecation messages either."
92d9a0e to
a84c0ca
Compare
a84c0ca to
e6f6da1
Compare
|
Updated ! |
|
@bors r+ rollup |
|
📌 Commit e6f6da1 has been approved by |
r? @Manishearth This is a work in progress.
r? @Manishearth
This is a work in progress.