diff options
| author | bors <bors@rust-lang.org> | 2023-04-17 19:43:39 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-04-17 19:43:39 +0000 |
| commit | 203c909d04ffc0b2c22f97cb304649aac237087e (patch) | |
| tree | f1c2ca0d6bd832033db66a4fbc3dcdebc449f9a0 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | e57deaace54648bf4e35bf121f23f92df4e6e0c6 (diff) | |
| parent | a2580db6420aa6ea3ab34c467bb795e9e39ba449 (diff) | |
| download | rust-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
