about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-08-16 05:10:23 +0000
committerbors <bors@rust-lang.org>2015-08-16 05:10:23 +0000
commit9165a4e2dcaaa878a33379c6ff097c68f0ca0485 (patch)
tree26f976828c10dbfb3e895569bfa434c6bc6e650b /src/libsyntax
parentfc7efab3ab48e119e1a59281c26e666634ad1224 (diff)
parent8ef1e3b77f0f0c365c6c11ebc5095997c8f0cd15 (diff)
downloadrust-9165a4e2dcaaa878a33379c6ff097c68f0ca0485.tar.gz
rust-9165a4e2dcaaa878a33379c6ff097c68f0ca0485.zip
Auto merge of #27818 - alexcrichton:tag-all-the-issues, r=aturon
This commit turns `#[unstable]` attributes missing an `issue` annotation into a hard error. This will require the libs team to ensure that there's a tracking issue for all unstable features in the standard library.

All existing unstable features have had issues created and they've all been updated. Yay!

Closes #26868
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/attr.rs7
-rw-r--r--src/libsyntax/lib.rs2
2 files changed, 4 insertions, 5 deletions
diff --git a/src/libsyntax/attr.rs b/src/libsyntax/attr.rs
index 399a529af15..5e16465b4d4 100644
--- a/src/libsyntax/attr.rs
+++ b/src/libsyntax/attr.rs
@@ -532,10 +532,9 @@ fn find_stability_generic<'a,
         }
     } else if stab.as_ref().map_or(false, |s| s.level == Unstable && s.issue.is_none()) {
         // non-deprecated unstable items need to point to issues.
-        // FIXME: uncomment this error
-        // diagnostic.span_err(item_sp,
-        //                     "non-deprecated unstable items need to point \
-        //                      to an issue with `issue = \"NNN\"`");
+        diagnostic.span_err(item_sp,
+                            "non-deprecated unstable items need to point \
+                             to an issue with `issue = \"NNN\"`");
     }
 
     (stab, used_attrs)
diff --git a/src/libsyntax/lib.rs b/src/libsyntax/lib.rs
index 290efb15195..0d1fa6dd726 100644
--- a/src/libsyntax/lib.rs
+++ b/src/libsyntax/lib.rs
@@ -17,7 +17,7 @@
 // Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
 #![cfg_attr(stage0, feature(custom_attribute))]
 #![crate_name = "syntax"]
-#![unstable(feature = "rustc_private")]
+#![unstable(feature = "rustc_private", issue = "27812")]
 #![staged_api]
 #![crate_type = "dylib"]
 #![crate_type = "rlib"]