about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-08-16 16:41:57 +0000
committerbors <bors@rust-lang.org>2020-08-16 16:41:57 +0000
commitc8e05fc1c61987682ca42fc65bde0d7c11affc65 (patch)
treedda7005d6b66714418dd687e2f7ad6050c85bc11 /src
parente522ca3c8d980f51c521512a6740849bf78cdcbf (diff)
parentb381ade1795f36149e36a646cdc83ee2fff032bf (diff)
downloadrust-c8e05fc1c61987682ca42fc65bde0d7c11affc65.tar.gz
rust-c8e05fc1c61987682ca42fc65bde0d7c11affc65.zip
Auto merge of #5881 - wiomoc:feature/single-char-push_str, r=ebroto,flip1995
Lint `push_str` with a single-character string literal

Fixes #5875
changelog:  `* [single_char_push_str]`
Diffstat (limited to 'src')
-rw-r--r--src/lintlist/mod.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lintlist/mod.rs b/src/lintlist/mod.rs
index 46827084a60..f76a215007c 100644
--- a/src/lintlist/mod.rs
+++ b/src/lintlist/mod.rs
@@ -2013,6 +2013,13 @@ pub static ref ALL_LINTS: Vec<Lint> = vec![
         module: "methods",
     },
     Lint {
+        name: "single_char_push_str",
+        group: "style",
+        desc: "`push_str()` used with a single-character string literal as parameter",
+        deprecation: None,
+        module: "methods",
+    },
+    Lint {
         name: "single_component_path_imports",
         group: "style",
         desc: "imports with single component path are redundant",