Add lint for string.extend("str".chars())

fixes #792
This commit is contained in:
Phil Turnbull
2016-11-19 10:21:40 -05:00
parent 0ab7e6c598
commit fa78b09fa7
5 changed files with 88 additions and 2 deletions

View File

@@ -391,6 +391,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
methods::SEARCH_IS_SOME,
methods::SHOULD_IMPLEMENT_TRAIT,
methods::SINGLE_CHAR_PATTERN,
methods::STRING_EXTEND_CHARS,
methods::TEMPORARY_CSTRING_AS_PTR,
methods::WRONG_SELF_CONVENTION,
minmax::MIN_MAX,