-
Couldn't load subscription status.
- Fork 13.9k
Make issue field optional in #[unstable] to avoid issue = "0"
#60860
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
Changes from all commits
547e46a
8a99c80
6d68a6c
6861c92
43c8207
68f1bf0
eb2ebee
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -432,7 +432,7 @@ register_diagnostics! { | |
| E0544, // multiple stability levels | ||
| E0545, // incorrect 'issue' | ||
| E0546, // missing 'feature' | ||
| E0547, // missing 'issue' | ||
| E0547, // missing 'issue' //TODO I reused this one for the warning. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is that a good idea? :/ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No it's not, but I don't know how to properly do it. Can someone help me here? |
||
| // E0548, // replaced with a generic attribute input check | ||
| E0549, // rustc_deprecated attribute must be paired with either stable or unstable attribute | ||
| E0550, // multiple deprecated attributes | ||
|
|
||
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.
What about using a
Option<NonZeroU32>>instead? There's no valid issue #0, which means that we can try to save some space here.Uh oh!
There was an error while loading. Please reload this page.
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 can't be done in this PR though, because the stage 0 compiler expects the old syntax and therefore the
issue = "0"in stdlib and stdcore must remain until the changes made here get into stage 0.(To be precise,
x.py checkemits errors and AFAIK Travis checks that.)Also, there are other places where issues are represented as
Option<u32>and evenSome(0)