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.  changelog: [`trivially_copy_pass_by_ref`]: Removed incorrect documentation suggesting the default has no limit.
This commit is contained in:
commit
d070402440
2 changed files with 2 additions and 2 deletions
|
|
@ -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`
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue