@@ -865,7 +865,7 @@ macro_rules! declare_lint {
865
865
) ;
866
866
) ;
867
867
( $( #[ $attr: meta] ) * $vis: vis $NAME: ident, $Level: ident, $desc: expr,
868
- $( @feature_gate = $gate: expr ; ) ?
868
+ $( @feature_gate = $gate: ident ; ) ?
869
869
$( @future_incompatible = FutureIncompatibleInfo {
870
870
reason: $reason: expr,
871
871
$( $field: ident : $val: expr) ,* $( , ) *
@@ -879,7 +879,7 @@ macro_rules! declare_lint {
879
879
desc: $desc,
880
880
is_externally_loaded: false ,
881
881
$( $v: true , ) *
882
- $( feature_gate: Some ( $gate) , ) ?
882
+ $( feature_gate: Some ( rustc_span :: symbol :: sym :: $gate) , ) ?
883
883
$( future_incompatible: Some ( $crate:: FutureIncompatibleInfo {
884
884
reason: $reason,
885
885
$( $field: $val, ) *
@@ -895,21 +895,21 @@ macro_rules! declare_lint {
895
895
macro_rules! declare_tool_lint {
896
896
(
897
897
$( #[ $attr: meta] ) * $vis: vis $tool: ident :: $NAME: ident, $Level: ident, $desc: expr
898
- $( , @feature_gate = $gate: expr ; ) ?
898
+ $( , @feature_gate = $gate: ident ; ) ?
899
899
) => (
900
900
$crate:: declare_tool_lint!{ $( #[ $attr] ) * $vis $tool:: $NAME, $Level, $desc, false $( , @feature_gate = $gate; ) ?}
901
901
) ;
902
902
(
903
903
$( #[ $attr: meta] ) * $vis: vis $tool: ident :: $NAME: ident, $Level: ident, $desc: expr,
904
904
report_in_external_macro: $rep: expr
905
- $( , @feature_gate = $gate: expr ; ) ?
905
+ $( , @feature_gate = $gate: ident ; ) ?
906
906
) => (
907
907
$crate:: declare_tool_lint!{ $( #[ $attr] ) * $vis $tool:: $NAME, $Level, $desc, $rep $( , @feature_gate = $gate; ) ?}
908
908
) ;
909
909
(
910
910
$( #[ $attr: meta] ) * $vis: vis $tool: ident :: $NAME: ident, $Level: ident, $desc: expr,
911
911
$external: expr
912
- $( , @feature_gate = $gate: expr ; ) ?
912
+ $( , @feature_gate = $gate: ident ; ) ?
913
913
) => (
914
914
$( #[ $attr] ) *
915
915
$vis static $NAME: & $crate:: Lint = & $crate:: Lint {
@@ -920,7 +920,7 @@ macro_rules! declare_tool_lint {
920
920
report_in_external_macro: $external,
921
921
future_incompatible: None ,
922
922
is_externally_loaded: true ,
923
- $( feature_gate: Some ( $gate) , ) ?
923
+ $( feature_gate: Some ( rustc_span :: symbol :: sym :: $gate) , ) ?
924
924
crate_level_only: false ,
925
925
..$crate:: Lint :: default_fields_for_macro( )
926
926
} ;
0 commit comments