Skip to content

Commit f552425

Browse files
committed
Cleanup
1 parent 0f9c9b6 commit f552425

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/libsyntax/ext/tt/macro_rules.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -889,8 +889,8 @@ fn is_legal_fragment_specifier(sess: &ParseSess,
889889
"item" | "block" | "stmt" | "expr" | "pat" |
890890
"path" | "ty" | "ident" | "meta" | "tt" | "" => true,
891891
"lifetime" => {
892-
if !features.borrow().macro_lifetime_matcher
893-
&& !attr::contains_name(attrs, "allow_internal_unstable") {
892+
if !features.borrow().macro_lifetime_matcher &&
893+
!attr::contains_name(attrs, "allow_internal_unstable") {
894894
let explain = feature_gate::EXPLAIN_LIFETIME_MATCHER;
895895
emit_feature_err(sess,
896896
"macro_lifetime_matcher",
@@ -901,8 +901,8 @@ fn is_legal_fragment_specifier(sess: &ParseSess,
901901
true
902902
},
903903
"vis" => {
904-
if !features.borrow().macro_vis_matcher
905-
&& !attr::contains_name(attrs, "allow_internal_unstable") {
904+
if !features.borrow().macro_vis_matcher &&
905+
!attr::contains_name(attrs, "allow_internal_unstable") {
906906
let explain = feature_gate::EXPLAIN_VIS_MATCHER;
907907
emit_feature_err(sess,
908908
"macro_vis_matcher",

src/libsyntax/feature_gate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ declare_features! (
523523
(accepted, loop_break_value, "1.19.0", Some(37339)),
524524
// Permits numeric fields in struct expressions and patterns.
525525
(accepted, relaxed_adts, "1.19.0", Some(35626)),
526-
// Coerces non capturing closures to function pointers
526+
// Coerces non capturing closures to function pointers
527527
(accepted, closure_to_fn_coercion, "1.19.0", Some(39817)),
528528
// Allows attributes on struct literal fields.
529529
(accepted, struct_field_attributes, "1.20.0", Some(38814)),

0 commit comments

Comments
 (0)