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>2022-11-08 16:07:32 +0000
committerbors <bors@rust-lang.org>2022-11-08 16:07:32 +0000
commitc4fbe54ac3916b42bb3469075abfef05803e3372 (patch)
tree6ce14dd73fc1853fa8cc5a71f80af9a1d5f858d2 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parentb9ca3195abeb5d8112b6739fc77e25d101937a56 (diff)
parent70010850e498de0b9b2a0b1874ab8271bb7da180 (diff)
downloadrust-c4fbe54ac3916b42bb3469075abfef05803e3372.tar.gz
rust-c4fbe54ac3916b42bb3469075abfef05803e3372.zip
Auto merge of #9817 - mgrachev:patch-1, r=Manishearth
Update lint example for `collapsible_str_replace`

To fix this warning:
```
warning: the borrowed expression implements the required traits
  --> src/fixes/quote_character.rs:16:43
   |
16 |         let hello = "hesuo worpd".replace(&['s', 'u', 'p'], "l");
   |                                           ^^^^^^^^^^^^^^^^ help: change this to: `['s', 'u', 'p']`
   |
   = note: `#[warn(clippy::needless_borrow)]` on by default
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
```

*Please write a short comment explaining your change (or "none" for internal only changes)*

changelog: none
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions