Allow tracking issues for lang features.

This is similar to the libs version, which allow an `issue` field in the
`#[unstable]` attribute.

cc #28244
This commit is contained in:
Huon Wilson
2015-09-04 16:37:22 -07:00
parent 62c45f4f25
commit 31310f5b65
12 changed files with 139 additions and 104 deletions

View File

@@ -22,6 +22,7 @@ pub fn expand_syntax_ext<'cx>(cx: &'cx mut base::ExtCtxt,
feature_gate::emit_feature_err(&cx.parse_sess.span_diagnostic,
"log_syntax",
sp,
feature_gate::GateIssue::Language,
feature_gate::EXPLAIN_LOG_SYNTAX);
return base::DummyResult::any(sp);
}