diff options
| author | Ross MacArthur <ross@macarthur.io> | 2019-12-21 13:16:18 +0200 |
|---|---|---|
| committer | Ross MacArthur <ross@macarthur.io> | 2019-12-21 13:16:18 +0200 |
| commit | f7256d28d1c2f8340ab5b99df4bdb15aa232f3f3 (patch) | |
| tree | 96290353977ba531e62b2af5a42e90331016ba44 /src/libsyntax | |
| parent | 9ff30a7810c586819a78188c173a7b74adbb9730 (diff) | |
| download | rust-f7256d28d1c2f8340ab5b99df4bdb15aa232f3f3.tar.gz rust-f7256d28d1c2f8340ab5b99df4bdb15aa232f3f3.zip | |
Require issue = "none" over issue = "0" in unstable attributes
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/attr/builtin.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/attr/builtin.rs b/src/libsyntax/attr/builtin.rs index a37b27f67bc..d780d0ad764 100644 --- a/src/libsyntax/attr/builtin.rs +++ b/src/libsyntax/attr/builtin.rs @@ -376,11 +376,11 @@ fn find_stability_generic<'a, I>(sess: &ParseSess, match (feature, reason, issue) { (Some(feature), reason, Some(issue)) => { let issue = match &*issue.as_str() { - // FIXME(rossmacarthur): remove "0" because "none" should be used - // See #41260 - "none" | "0" => None, + "none" => None, issue => { if let Ok(num) = issue.parse() { + // FIXME(rossmacarthur): disallow 0 + // Disallowing this requires updates to some submodules NonZeroU32::new(num) } else { span_err!( |
