Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit d070402

Browse files
authored
Remove incorrect "default there is no limit" documentation from trivial_copy_size_limit (rust-lang#13719)
Remove the documentation incorrectly saying there is no default, followed by the default. ![image](https://github.com/user-attachments/assets/eab54c81-945d-4ce2-b9fb-5cc84f01e68c) changelog: [`trivially_copy_pass_by_ref`]: Removed incorrect documentation suggesting the default has no limit.
2 parents 479e1fc + 671183a commit d070402

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

book/src/lint_configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ The order of associated items in traits.
895895

896896
## `trivial-copy-size-limit`
897897
The maximum size (in bytes) to consider a `Copy` type for passing by value instead of by
898-
reference. By default there is no limit
898+
reference.
899899

900900
**Default Value:** `target_pointer_width * 2`
901901

clippy_config/src/conf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ define_Conf! {
678678
#[lints(arbitrary_source_item_ordering)]
679679
trait_assoc_item_kinds_order: SourceItemOrderingTraitAssocItemKinds = DEFAULT_TRAIT_ASSOC_ITEM_KINDS_ORDER.into(),
680680
/// The maximum size (in bytes) to consider a `Copy` type for passing by value instead of by
681-
/// reference. By default there is no limit
681+
/// reference.
682682
#[default_text = "target_pointer_width * 2"]
683683
#[lints(trivially_copy_pass_by_ref)]
684684
trivial_copy_size_limit: Option<u64> = None,

0 commit comments

Comments
 (0)