@@ -575,10 +575,24 @@ define_Conf! {
575575 #[ conf_deprecated( "Please use `cognitive-complexity-threshold` instead" , cognitive_complexity_threshold) ]
576576 cyclomatic_complexity_threshold: u64 = 25 ,
577577 /// The list of disallowed macros, written as fully qualified paths.
578+ ///
579+ /// **Fields:**
580+ /// - `path` (required): the fully qualified path to the macro that should be disallowed
581+ /// - `reason` (optional): explanation why this macro is disallowed
582+ /// - `replacement` (optional): suggested alternative macro
583+ /// - `allow-invalid` (optional, `false` by default): when set to `true`, it will ignore this entry
584+ /// if the path doesn't exist, instead of emitting an error
578585 #[ disallowed_paths_allow_replacements = true ]
579586 #[ lints( disallowed_macros) ]
580587 disallowed_macros: Vec <DisallowedPath > = Vec :: new( ) ,
581588 /// The list of disallowed methods, written as fully qualified paths.
589+ ///
590+ /// **Fields:**
591+ /// - `path` (required): the fully qualified path to the method that should be disallowed
592+ /// - `reason` (optional): explanation why this method is disallowed
593+ /// - `replacement` (optional): suggested alternative method
594+ /// - `allow-invalid` (optional, `false` by default): when set to `true`, it will ignore this entry
595+ /// if the path doesn't exist, instead of emitting an error
582596 #[ disallowed_paths_allow_replacements = true ]
583597 #[ lints( disallowed_methods) ]
584598 disallowed_methods: Vec <DisallowedPath > = Vec :: new( ) ,
@@ -588,6 +602,13 @@ define_Conf! {
588602 #[ lints( disallowed_names) ]
589603 disallowed_names: Vec <String > = DEFAULT_DISALLOWED_NAMES . iter( ) . map( ToString :: to_string) . collect( ) ,
590604 /// The list of disallowed types, written as fully qualified paths.
605+ ///
606+ /// **Fields:**
607+ /// - `path` (required): the fully qualified path to the type that should be disallowed
608+ /// - `reason` (optional): explanation why this type is disallowed
609+ /// - `replacement` (optional): suggested alternative type
610+ /// - `allow-invalid` (optional, `false` by default): when set to `true`, it will ignore this entry
611+ /// if the path doesn't exist, instead of emitting an error
591612 #[ disallowed_paths_allow_replacements = true ]
592613 #[ lints( disallowed_types) ]
593614 disallowed_types: Vec <DisallowedPath > = Vec :: new( ) ,
0 commit comments