@@ -572,10 +572,24 @@ define_Conf! {
572572 #[ conf_deprecated( "Please use `cognitive-complexity-threshold` instead" , cognitive_complexity_threshold) ]
573573 cyclomatic_complexity_threshold: u64 = 25 ,
574574 /// The list of disallowed macros, written as fully qualified paths.
575+ ///
576+ /// **Fields:**
577+ /// - `path` (required): the fully qualified path to the macro that should be disallowed
578+ /// - `reason` (optional): explanation why this macro is disallowed
579+ /// - `replacement` (optional): suggested alternative macro
580+ /// - `allow-invalid` (optional, `false` by default): when set to `true`, it will ignore this entry
581+ /// if the path doesn't exist, instead of emitting an error
575582 #[ disallowed_paths_allow_replacements = true ]
576583 #[ lints( disallowed_macros) ]
577584 disallowed_macros: Vec <DisallowedPath > = Vec :: new( ) ,
578585 /// The list of disallowed methods, written as fully qualified paths.
586+ ///
587+ /// **Fields:**
588+ /// - `path` (required): the fully qualified path to the method that should be disallowed
589+ /// - `reason` (optional): explanation why this method is disallowed
590+ /// - `replacement` (optional): suggested alternative method
591+ /// - `allow-invalid` (optional, `false` by default): when set to `true`, it will ignore this entry
592+ /// if the path doesn't exist, instead of emitting an error
579593 #[ disallowed_paths_allow_replacements = true ]
580594 #[ lints( disallowed_methods) ]
581595 disallowed_methods: Vec <DisallowedPath > = Vec :: new( ) ,
@@ -585,6 +599,13 @@ define_Conf! {
585599 #[ lints( disallowed_names) ]
586600 disallowed_names: Vec <String > = DEFAULT_DISALLOWED_NAMES . iter( ) . map( ToString :: to_string) . collect( ) ,
587601 /// The list of disallowed types, written as fully qualified paths.
602+ ///
603+ /// **Fields:**
604+ /// - `path` (required): the fully qualified path to the type that should be disallowed
605+ /// - `reason` (optional): explanation why this type is disallowed
606+ /// - `replacement` (optional): suggested alternative type
607+ /// - `allow-invalid` (optional, `false` by default): when set to `true`, it will ignore this entry
608+ /// if the path doesn't exist, instead of emitting an error
588609 #[ disallowed_paths_allow_replacements = true ]
589610 #[ lints( disallowed_types) ]
590611 disallowed_types: Vec <DisallowedPath > = Vec :: new( ) ,
0 commit comments