This commit is contained in:
Matt Peterson 2017-12-28 11:52:50 -05:00
parent 0f9c9b66bb
commit f55242583c
2 changed files with 5 additions and 5 deletions

View File

@ -889,8 +889,8 @@ fn is_legal_fragment_specifier(sess: &ParseSess,
"item" | "block" | "stmt" | "expr" | "pat" |
"path" | "ty" | "ident" | "meta" | "tt" | "" => true,
"lifetime" => {
if !features.borrow().macro_lifetime_matcher
&& !attr::contains_name(attrs, "allow_internal_unstable") {
if !features.borrow().macro_lifetime_matcher &&
!attr::contains_name(attrs, "allow_internal_unstable") {
let explain = feature_gate::EXPLAIN_LIFETIME_MATCHER;
emit_feature_err(sess,
"macro_lifetime_matcher",
@ -901,8 +901,8 @@ fn is_legal_fragment_specifier(sess: &ParseSess,
true
},
"vis" => {
if !features.borrow().macro_vis_matcher
&& !attr::contains_name(attrs, "allow_internal_unstable") {
if !features.borrow().macro_vis_matcher &&
!attr::contains_name(attrs, "allow_internal_unstable") {
let explain = feature_gate::EXPLAIN_VIS_MATCHER;
emit_feature_err(sess,
"macro_vis_matcher",

View File

@ -523,7 +523,7 @@ declare_features! (
(accepted, loop_break_value, "1.19.0", Some(37339)),
// Permits numeric fields in struct expressions and patterns.
(accepted, relaxed_adts, "1.19.0", Some(35626)),
// Coerces non capturing closures to function pointers
// Coerces non capturing closures to function pointers
(accepted, closure_to_fn_coercion, "1.19.0", Some(39817)),
// Allows attributes on struct literal fields.
(accepted, struct_field_attributes, "1.20.0", Some(38814)),