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-17 19:43:39 +0000
committerbors <bors@rust-lang.org>2023-04-17 19:43:39 +0000
commit203c909d04ffc0b2c22f97cb304649aac237087e (patch)
treef1c2ca0d6bd832033db66a4fbc3dcdebc449f9a0 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parente57deaace54648bf4e35bf121f23f92df4e6e0c6 (diff)
parenta2580db6420aa6ea3ab34c467bb795e9e39ba449 (diff)
downloadrust-203c909d04ffc0b2c22f97cb304649aac237087e.tar.gz
rust-203c909d04ffc0b2c22f97cb304649aac237087e.zip
Auto merge of #10661 - timvisee:manual-slice-size-calc-suggestion, r=Manishearth
Add `manual_slice_size_calculation` applicable suggestion

Continuation of https://github.com/rust-lang/rust-clippy/pull/10659#issuecomment-1511688869.

This adds applicable suggestions to the `manual_slice_size_calculation` lint:

```
error: manual slice size calculation
  --> $DIR/manual_slice_size_calculation.rs:11:13
   |
LL |     let _ = s_i32.len() * size_of::<i32>(); // WARNING
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::mem::size_of_val(s_i32)`
   |
   = note: `-D clippy::manual-slice-size-calculation` implied by `-D warnings`
```

changelog: [`manual_slice_size_calculation`]: add machine applicable suggestion
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions