@@ -235,7 +235,7 @@ define_Conf! {
235235 ///
236236 /// A type, say `SomeType`, listed in this configuration has the same behavior of
237237 /// `["SomeType" , "*"], ["*", "SomeType"]` in `arithmetic_side_effects_allowed_binary`.
238- ( arithmetic_side_effects_allowed: FxHashSet <String > = <_>:: default ( ) ) ,
238+ ( arithmetic_side_effects_allowed: Vec <String > = <_>:: default ( ) ) ,
239239 /// Lint: ARITHMETIC_SIDE_EFFECTS.
240240 ///
241241 /// Suppress checking of the passed type pair names in binary operations like addition or
@@ -262,7 +262,7 @@ define_Conf! {
262262 /// ```toml
263263 /// arithmetic-side-effects-allowed-unary = ["SomeType", "AnotherType"]
264264 /// ```
265- ( arithmetic_side_effects_allowed_unary: FxHashSet <String > = <_>:: default ( ) ) ,
265+ ( arithmetic_side_effects_allowed_unary: Vec <String > = <_>:: default ( ) ) ,
266266 /// Lint: ENUM_VARIANT_NAMES, LARGE_TYPES_PASSED_BY_VALUE, TRIVIALLY_COPY_PASS_BY_REF, UNNECESSARY_WRAPS, UNUSED_SELF, UPPER_CASE_ACRONYMS, WRONG_SELF_CONVENTION, BOX_COLLECTION, REDUNDANT_ALLOCATION, RC_BUFFER, VEC_BOX, OPTION_OPTION, LINKEDLIST, RC_MUTEX, UNNECESSARY_BOX_RETURNS, SINGLE_CALL_FN, NEEDLESS_PASS_BY_REF_MUT.
267267 ///
268268 /// Suppress lints whenever the suggested change would cause breakage for other crates.
@@ -311,7 +311,7 @@ define_Conf! {
311311 /// default configuration of Clippy. By default, any configuration will replace the default value. For example:
312312 /// * `doc-valid-idents = ["ClipPy"]` would replace the default list with `["ClipPy"]`.
313313 /// * `doc-valid-idents = ["ClipPy", ".."]` would append `ClipPy` to the default list.
314- ( doc_valid_idents: Vec <String > = DEFAULT_DOC_VALID_IDENTS . iter( ) . map( ToString :: to_string) . collect( ) ) ,
314+ ( doc_valid_idents: FxHashSet <String > = DEFAULT_DOC_VALID_IDENTS . iter( ) . map( ToString :: to_string) . collect( ) ) ,
315315 /// Lint: TOO_MANY_ARGUMENTS.
316316 ///
317317 /// The maximum number of argument a function or method can have
@@ -547,7 +547,7 @@ define_Conf! {
547547 /// Lint: PATH_ENDS_WITH_EXT.
548548 ///
549549 /// Additional dotfiles (files or directories starting with a dot) to allow
550- ( allowed_dotfiles: FxHashSet <String > = FxHashSet :: default ( ) ) ,
550+ ( allowed_dotfiles: Vec <String > = Vec :: default ( ) ) ,
551551 /// Lint: MULTIPLE_CRATE_VERSIONS.
552552 ///
553553 /// A list of crate names to allow duplicates of
@@ -700,7 +700,6 @@ pub fn lookup_conf_file() -> io::Result<(Option<PathBuf>, Vec<String>)> {
700700fn deserialize ( file : & SourceFile ) -> TryConf {
701701 match toml:: de:: Deserializer :: new ( file. src . as_ref ( ) . unwrap ( ) ) . deserialize_map ( ConfVisitor ( file) ) {
702702 Ok ( mut conf) => {
703- extend_vec_if_indicator_present ( & mut conf. conf . doc_valid_idents , DEFAULT_DOC_VALID_IDENTS ) ;
704703 extend_vec_if_indicator_present ( & mut conf. conf . disallowed_names , DEFAULT_DISALLOWED_NAMES ) ;
705704 extend_vec_if_indicator_present ( & mut conf. conf . allowed_prefixes , DEFAULT_ALLOWED_PREFIXES ) ;
706705 extend_vec_if_indicator_present (
@@ -713,6 +712,11 @@ fn deserialize(file: &SourceFile) -> TryConf {
713712 . allowed_idents_below_min_chars
714713 . extend ( DEFAULT_ALLOWED_IDENTS_BELOW_MIN_CHARS . iter ( ) . map ( ToString :: to_string) ) ;
715714 }
715+ if conf. conf . doc_valid_idents . contains ( ".." ) {
716+ conf. conf
717+ . doc_valid_idents
718+ . extend ( DEFAULT_DOC_VALID_IDENTS . iter ( ) . map ( ToString :: to_string) ) ;
719+ }
716720
717721 conf
718722 } ,
0 commit comments