Skip to content

Commit 6634777

Browse files
committed
syntax: Require issues for unstable features
This turns an `#[unstable]` tag without an `issue` annotation into a hard error to ensure that we've always got a tracking issue for unstable features in the standard library.
1 parent f05b22e commit 6634777

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/libsyntax/attr.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -532,10 +532,9 @@ fn find_stability_generic<'a,
532532
}
533533
} else if stab.as_ref().map_or(false, |s| s.level == Unstable && s.issue.is_none()) {
534534
// non-deprecated unstable items need to point to issues.
535-
// FIXME: uncomment this error
536-
// diagnostic.span_err(item_sp,
537-
// "non-deprecated unstable items need to point \
538-
// to an issue with `issue = \"NNN\"`");
535+
diagnostic.span_err(item_sp,
536+
"non-deprecated unstable items need to point \
537+
to an issue with `issue = \"NNN\"`");
539538
}
540539

541540
(stab, used_attrs)

0 commit comments

Comments
 (0)