File tree Expand file tree Collapse file tree 1 file changed +2
-24
lines changed Expand file tree Collapse file tree 1 file changed +2
-24
lines changed Original file line number Diff line number Diff line change @@ -148,13 +148,6 @@ macro_rules! declare_bevy_lint {
148148/// declare_bevy_lint_pass! {
149149/// // Declares which lints are emitted by this lint pass.
150150/// pub LintPassName => [LINT_NAME],
151- ///
152- /// // The following are optional fields, and may be omitted.
153- /// //
154- /// // Declares fields of the lint pass that are set when `LintPassName::default()` is called.
155- /// @default = {
156- /// component: Symbol = Symbol::intern("component"),
157- /// },
158151/// }
159152/// ```
160153#[ macro_export]
@@ -163,25 +156,10 @@ macro_rules! declare_bevy_lint_pass {
163156 (
164157 $( #[ $attr: meta] ) *
165158 $vis: vis $name: ident => [ $( $lint: expr) ,* $( , ) ?] ,
166-
167- $(
168- @default = {
169- $( $default_field: ident: $default_ty: ty = $default_value: expr) ,* $( , ) ?
170- } ,
171- ) ?
172159 ) => {
173160 $( #[ $attr] ) *
174- $vis struct $name {
175- $( $( $default_field: $default_ty) ,* ) ?
176- }
177-
178- impl :: std:: default :: Default for $name {
179- fn default ( ) -> Self {
180- Self {
181- $( $( $default_field: $default_value) ,* ) ?
182- }
183- }
184- }
161+ #[ derive( Default ) ]
162+ $vis struct $name;
185163
186164 :: rustc_lint_defs:: impl_lint_pass!( $name => [ $( $lint) ,* ] ) ;
187165 } ;
You can’t perform that action at this time.
0 commit comments