about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-10-09 23:14:58 +0000
committerbors <bors@rust-lang.org>2020-10-09 23:14:58 +0000
commit2bdadd8e7dc54651df06e0adff1c1b1e7dcf6480 (patch)
treeb3471fef1070d8876826263fbb632602d8a76d5e /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent0b86340999c207647b797bccbb1d49f824a277df (diff)
parent7b7ddfa55da889b41e90243ac59a04eed832a71e (diff)
downloadrust-2bdadd8e7dc54651df06e0adff1c1b1e7dcf6480.tar.gz
rust-2bdadd8e7dc54651df06e0adff1c1b1e7dcf6480.zip
Auto merge of #6151 - bofh69:master, r=ebroto
Preserve raw strs for: format!(s) to s.to_string() lint

fixes #6142

clippy::useless_format will keep the source's string (after converting {{ and }} to { and }) when suggesting a change from format!() to .to_string() usage. Ie:
|     let s = format!(r#""hello {{}}""#);
|             ^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `r#""hello {}""#.to_string()`

changelog: [`useless_format`]: preserve raw string literals when no arguments to `format!()` are provided.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions