Remove incorrect "default there is no limit" documentation from trivial_copy_size_limit (#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.
This commit is contained in:
Fridtjof Stoldt 2024-11-25 10:28:44 +00:00 committed by GitHub
commit d070402440
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -895,7 +895,7 @@ The order of associated items in traits.
## `trivial-copy-size-limit`
The maximum size (in bytes) to consider a `Copy` type for passing by value instead of by
reference. By default there is no limit
reference.
**Default Value:** `target_pointer_width * 2`

View file

@ -678,7 +678,7 @@ define_Conf! {
#[lints(arbitrary_source_item_ordering)]
trait_assoc_item_kinds_order: SourceItemOrderingTraitAssocItemKinds = DEFAULT_TRAIT_ASSOC_ITEM_KINDS_ORDER.into(),
/// The maximum size (in bytes) to consider a `Copy` type for passing by value instead of by
/// reference. By default there is no limit
/// reference.
#[default_text = "target_pointer_width * 2"]
#[lints(trivially_copy_pass_by_ref)]
trivial_copy_size_limit: Option<u64> = None,