about summary refs log tree commit diff
path: root/clippy_lints
AgeCommit message (Collapse)AuthorLines
2019-05-30Update pulldown_cmark to 0.5.2Philipp Hansch-1/+1
Includes various parsing fixes. Most notably [this PR][pr] [pr]: https://github.com/raphlinus/pulldown-cmark/pull/325
2019-05-29Auto merge of #4153 - matthiaskrgr:rustup_5, r=flip1995bors-3/+3
rustup https://github.com/rust-lang/rust/pull/60928 changelog: none
2019-05-29rustup https://github.com/rust-lang/rust/pull/60928Matthias Krüger-3/+3
2019-05-28rustup https://github.com/rust-lang/rust/pull/61164Matthias Krüger-6/+6
(which is included in https://github.com/rust-lang/rust/pull/61274)
2019-05-28Fix `Block` dump in author lintOliver Scherer-1/+12
2019-05-28Auto merge of #4142 - agnxy:rename-assoc, r=flip1995bors-11/+11
Rename "Associated*" to "Assoc*" This is to fix the breakage introduced by rust-lang/rust#60163. changelog: none
2019-05-28Auto merge of #4071 - matthiaskrgr:sizeof, r=flip1995bors-2/+2
trivially_copy_pass_by_ref: print size of type and limit in the lint message changelog: trivially_copy_pass_by_ref: print size of type and limit in the lint message
2019-05-27Rustup to rustc 1.36.0-nightly (fa40a111f 2019-05-27)Oliver Scherer-6/+13
2019-05-27Auto merge of #4137 - euclio:let-return, r=oli-obkbors-8/+23
tweak `let_and_return` diagnostic changelog: `let_and_return`: label the unnecessary let binding and convert the note to a structured suggestion
2019-05-27Auto merge of #4149 - flip1995:rollup-6knpdqb, r=flip1995bors-32/+49
Rollup of 2 pull requests Successful merges: - #4102 (Fix match_same_arms to fail late) - #4119 (Improve non ascii literal) Failed merges: r? @ghost
2019-05-27Rollup merge of #4119 - BO41:non_ascii_literal, r=flip1995Philipp Krones-21/+23
Improve non ascii literal This PR improves the example of the [non_ascii_literal](https://rust-lang.github.io/rust-clippy/master/index.html#non_ascii_literal) lint. It also makes it auto-fixable. Please review. This is my first PR to this project. (Thanks @flip1995 for the help :) changelog: none fixes #4117
2019-05-27Rollup merge of #4102 - Urriel:fix/4096_match_same_arms, r=flip1995Philipp Krones-11/+26
Fix match_same_arms to fail late Changes: - Add a function search_same_list which return a list of matched expressions - Change the match_same_arms implementation behavior. It will lint each same arms found. fixes #4096 changelog: none
2019-05-27Auto merge of #3832 - HarrisonMc555:use_last, r=flip1995bors-0/+109
Implement "Use last" lint Closes #3673 This lint checks the use of `x.get(x.len() - 1)` and suggests `x.last()` (where `x` is a `Vec`). There's at least one more thing that needs to happen here. I believe I am correctly checking most of the scenarios and avoiding false positives. However, if different `Vec`s are used for the `x.get` and `y.len`, then it will emit a false positive. In other words, I need to check to make sure the `Vec`s are the same. Also, a lot of these commits were temporary and not helpful to the project history...am I supposed to squash on merge? If so, how do I do that? changelog: New lint: `get_last_with_len`
2019-05-27Fix typo in commentSeo Sanghyeon-1/+1
2019-05-26RustfmtOliver Scherer-5/+3
2019-05-26Rustup to rustc 1.36.0-nightly (2268d9923 2019-05-26)Oliver Scherer-9/+5
2019-05-25Rename "Associated*" to "Assoc*"Andrew Xu-11/+11
This is to fix the breakage introduced by rust-lang/rust#60163.
2019-05-25Rustup to https://github.com/rust-lang/rust/pull/61026Philipp Hansch-1/+1
2019-05-24tweak `let_and_return` diagnosticAndy Russell-8/+23
Label the unnecessary let binding and convert the note to structured suggestion.
2019-05-24rustup https://github.com/rust-lang/rust/pull/60803/Matthias Krüger-3/+1
2019-05-24Rustup to https://github.com/rust-lang/rust/pull/59545Philipp Hansch-2/+3
2019-05-23trivially_copy_pass_by_ref: print size of type and limit in the lint messageMatthias Krüger-2/+2
2019-05-23Rollup merge of #4129 - matthiaskrgr:if_chain, r=phanschPhilipp Hansch-2/+3
update if_chain to 1.0.0
2019-05-23Rustup to https://github.com/rust-lang/rust/pull/60965Philipp Hansch-4/+4
2019-05-23update if_chain to 1.0.0Matthias Krüger-2/+3
2019-05-23cargo fmtPhilipp Hansch-3/+1
Roses are red Violets are blue `Add rustfmt to a pre-commit hook` is what I should do.
2019-05-23Rustup to https://github.com/rust-lang/rust/pull/60740Philipp Hansch-8/+8
changelog: none
2019-05-21Rustup to rustc 1.36.0-nightly (dbfe70dfc 2019-05-22)Manish Goregaokar-4/+4
2019-05-21Add the common case searchVincent Dal Maso-74/+52
Changes: - Refactor the common case search into a function. - Fix the useless Option around the vec in the search_same_list.
2019-05-21Formatting inside if_chain! macroPhilipp Krones-3/+10
2019-05-20Implement get_last_with_len lintHarrison McCullough-0/+102
2019-05-20Fix tests and make other ascii lints auto-fixableBO41-27/+15
2019-05-20Make non_ascii_literal auto-fixableBO41-2/+12
2019-05-20Improve verbosity of non_ascii_literal lint exampleBO41-1/+5
2019-05-20Auto merge of #4088 - pJunger:check1, r=oli-obkbors-1/+346
Added lint for TryFrom for checked integer conversion. works towards #3947 Added lint for try_from for checked integer conversion. Should recognize simple & straight-forward checked integer conversions.
2019-05-19Auto merge of #4107 - taiki-e:useless_attribute, r=flip1995bors-4/+5
useless_attribute: Add unreachable_pub to whitelists Fixes #4106 changelog: `useless_attribute`: whitelist `unreachable_pub` on `use` items
2019-05-19Auto merge of #4099 - flip1995:ul_4094, r=oli-obkbors-6/+7
Add macro check for unreadable_literal lint Closes #4094 changelog: Disable `unreadable_literal` lint inside macros
2019-05-18Removed symbols again.pJunger-39/+26
2019-05-18Removed unused lifetime.pJunger-1/+1
2019-05-18Changed impl to use symbols.pJunger-31/+45
2019-05-18Added suggestion for conversion with is_ok.pJunger-12/+22
2019-05-18Fixed more lint findings.pJunger-5/+4
2019-05-18Fixed clippy lints in checked_conversions.rs.pJunger-3/+3
2019-05-18Registered lint.pJunger-0/+1
2019-05-18Added lint for TryFrom for checked integer conversion rust-lang#3947.pJunger-0/+334
2019-05-18useless_attribute: Add unreachable_pub to whitelistsTaiki Endo-4/+5
2019-05-18DogfoodOliver Scherer-75/+73
2019-05-18Dogfood and rustfmtOliver Scherer-49/+20
2019-05-17Prevent symbocalypseOliver Scherer-1160/+686
2019-05-16Add known problemsManish Goregaokar-0/+4