1
Fork 0
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",