diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2019-11-12 16:36:16 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-12 16:36:16 +0900 |
| commit | 4134a4acf555bad45c83b0379df5fb86402499ec (patch) | |
| tree | a6e77a1a987f9cc3edb8edcdeead9ffb4e358876 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 6bdd1beca6d310f0baaffa0835a16a968061ccfb (diff) | |
| parent | 3ba825725390fe103a057e59100c7c8cafc22404 (diff) | |
| download | rust-4134a4acf555bad45c83b0379df5fb86402499ec.tar.gz rust-4134a4acf555bad45c83b0379df5fb86402499ec.zip | |
Rollup merge of #66299 - rossmacarthur:fix-41260-avoid-issue-0, r=varkor
support issue = "none" in unstable attributes
This works towards fixing #41260.
This PR allows the use of `issue = "none"` in unstable attributes and makes changes to internally store the issue number as an `Option<NonZeroU32>`. For example:
```rust
#[unstable(feature = "unstable_test_feature", issue = "none")]
fn unstable_issue_none() {}
```
It was not made optional because feedback seen here #60860 suggested that people might forget the issue field if it was optional.
I could not remove the current uses of `issue = "0"` (of which there are a lot) because the stage 0 compiler expects the old syntax. Once this is available in the stage 0 compiler we can replace all uses of `"0"` with `"none"` and no longer allow `"0"`. This is my first time contributing, so I'm not sure what the protocol is with two-part things like this, so some guidance would be appreciated.
r? @varkor
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
