diff options
| author | Jason Newcomb <jsnewcomb@pm.me> | 2025-05-21 20:05:31 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-21 20:05:31 +0000 |
| commit | 9fa448a119aca6408c554cea1d75ebdca726f0b6 (patch) | |
| tree | 61fd9667d501b8eb68dc41d5123f9f25122d9ee4 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | cadf98bb7d783e2ea3572446c3f80d3592ec5f86 (diff) | |
| parent | ae0e3b7e38136b6303eb2362fca814600e34b024 (diff) | |
| download | rust-9fa448a119aca6408c554cea1d75ebdca726f0b6.tar.gz rust-9fa448a119aca6408c554cea1d75ebdca726f0b6.zip | |
Make `trivial-copy-size-limit` consistently the size of the target pointer (#13319)
Fixes https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/Ambiguous.20default.20value.20for.20.60trivial-copy-size-limit.60 The current situation is | Target width | `trivial-copy-size-limit`| |--------|--------| | 8-bit | 2 | | 16-bit | 4 | | 32-bit | 8 | | 64-bit | 8 | ~~Since practically speaking it's almost always 8, let's go with that as the unconditional default to make it easier to understand~~ Now defaults to `target_pointer_width` changelog: [`trivial-copy-size-limit`] now also defaults to the size of a target pointer (unchanged for 64-bit targets)
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
