diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2015-09-04 16:37:22 -0700 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2015-09-08 11:01:42 +1000 |
| commit | 31310f5b65232ce9714f8f4c9ad066a97f7f20f4 (patch) | |
| tree | 7c8a780df6226d9845d3d53c2b23a3a59a0ab0f0 /src/libsyntax/ext/expand.rs | |
| parent | 62c45f4f25129af3708b7f5509d4503f5cce5b64 (diff) | |
| download | rust-31310f5b65232ce9714f8f4c9ad066a97f7f20f4.tar.gz rust-31310f5b65232ce9714f8f4c9ad066a97f7f20f4.zip | |
Allow tracking issues for lang features.
This is similar to the libs version, which allow an `issue` field in the `#[unstable]` attribute. cc #28244
Diffstat (limited to 'src/libsyntax/ext/expand.rs')
| -rw-r--r-- | src/libsyntax/ext/expand.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs index fd70dd175fc..1991124ae26 100644 --- a/src/libsyntax/ext/expand.rs +++ b/src/libsyntax/ext/expand.rs @@ -778,6 +778,7 @@ pub fn expand_item_mac(it: P<ast::Item>, &fld.cx.parse_sess.span_diagnostic, "allow_internal_unstable", it.span, + feature_gate::GateIssue::Language, feature_gate::EXPLAIN_ALLOW_INTERNAL_UNSTABLE) } @@ -1469,7 +1470,8 @@ pub fn expand_type(t: P<ast::Ty>, fld: &mut MacroExpander) -> P<ast::Ty> { &fld.cx.parse_sess.span_diagnostic, "type_macros", t.span, - "type macros are experimental (see issue: #27336)"); + feature_gate::GateIssue::Language, + "type macros are experimental"); DummyResult::raw_ty(t.span) } |
