diff --git a/book/src/lint_configuration.md b/book/src/lint_configuration.md index 3b62ae0524a..99853f8bc2b 100644 --- a/book/src/lint_configuration.md +++ b/book/src/lint_configuration.md @@ -769,6 +769,8 @@ Additional dotfiles (files or directories starting with a dot) to allow ## `enforce-iter-loop-reborrow` +Whether to recommend using implicit into iter for reborrowed values. + #### Example ```no_run let mut vec = vec![1, 2, 3]; @@ -793,7 +795,7 @@ for _ in &mut *rmvec {} ## `check-private-items` - +Whether to also run the listed lints on private items. **Default Value:** `false` @@ -806,7 +808,8 @@ for _ in &mut *rmvec {} ## `pub-underscore-fields-behavior` - +Meow "public" fields in a struct that are prefixed with an underscore based on their +exported visibility, or whether they are marked as "pub". **Default Value:** `"PublicallyExported"` diff --git a/clippy_config/src/conf.rs b/clippy_config/src/conf.rs index 5477d9b83a7..e68969137d0 100644 --- a/clippy_config/src/conf.rs +++ b/clippy_config/src/conf.rs @@ -523,7 +523,7 @@ pub fn get_configuration_metadata() -> Vec { /// /// Additional dotfiles (files or directories starting with a dot) to allow (allowed_dotfiles: FxHashSet = FxHashSet::default()), - /// Lint: EXPLICIT_ITER_LOOP + /// Lint: EXPLICIT_ITER_LOOP. /// /// Whether to recommend using implicit into iter for reborrowed values. /// @@ -543,11 +543,11 @@ pub fn get_configuration_metadata() -> Vec { /// for _ in &mut *rmvec {} /// ``` (enforce_iter_loop_reborrow: bool = false), - /// Lint: MISSING_SAFETY_DOC, UNNECESSARY_SAFETY_DOC, MISSING_PANICS_DOC, MISSING_ERRORS_DOC + /// Lint: MISSING_SAFETY_DOC, UNNECESSARY_SAFETY_DOC, MISSING_PANICS_DOC, MISSING_ERRORS_DOC. /// /// Whether to also run the listed lints on private items. (check_private_items: bool = false), - /// Lint: PUB_UNDERSCORE_FIELDS + /// Lint: PUB_UNDERSCORE_FIELDS. /// /// Lint "public" fields in a struct that are prefixed with an underscore based on their /// exported visibility, or whether they are marked as "pub".