about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-04-19 12:42:33 +0000
committerbors <bors@rust-lang.org>2023-04-19 12:42:33 +0000
commit0c44586ff7d7f05bbfb3e777a896846d7d42c0c3 (patch)
tree3b924ba52d71367304a4876714043b4496009158 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent8099f195168b9aa954dd3981ab643f44f59005d4 (diff)
parent4bc68f9c60c72c9608b49d20907843b37c91f39b (diff)
downloadrust-0c44586ff7d7f05bbfb3e777a896846d7d42c0c3.tar.gz
rust-0c44586ff7d7f05bbfb3e777a896846d7d42c0c3.zip
Auto merge of #10651 - lukaslueg:issue10641, r=xFrednet
Add size-parameter to unecessary_box_returns

Fixes #10641

This adds a configuration-knob to the `unecessary_box_returns`-lint which allows _not_ linting a `fn() -> Box<T>` if `T` is "large". The default byte size above which we no longer lint is 128 bytes (due to https://github.com/rust-lang/rust-clippy/issues/4652#issue-505670554, also used in #9373). The overall rational is given in #10641.

---

changelog: Enhancement: [`unnecessary_box_returns`]: Added new lint configuration `unnecessary-box-size` to set the maximum size of `T` in `Box<T>` to be linted
[#10651](https://github.com/rust-lang/rust-clippy/pull/10651)
<!-- changelog_checked -->
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions