about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2019-08-20Auto merge of #4401 - JJJollyjim:literal-separation-suggestion, r=flip1995bors-61/+116
Add autofixable suggestion for unseparated integer literal suffixes changelog: Add autofixable suggestion for unseparated integer literal suffixes Somewhat WIP, since I haven't been able to get this working when adding `// run-rustfix` to `ui/literals.rs`. I think the issue is that there are multiple suggestions operating on one numerical literal, and I'm not sure what the best approach is to work around that. Thanks
2019-08-20Auto merge of #4420 - phansch:disable_rls_integration_test, r=phanschbors-2/+2
Disable RLS integration test until RLS has been updated to the latest Clippy commit. cc https://github.com/rust-lang/rust-clippy/pull/4416#issuecomment-522859091 changelog: none
2019-08-20Merge pull request #4416 from SimonSapin/pluginPhilipp Hansch-16/+12
Import rustc_plugin from its new location
2019-08-20Disable RLS integration testPhilipp Hansch-2/+2
until RLS has been updated to the latest Clippy commit.
2019-08-20Update if_chain doc linkLzu Tao-1/+1
2019-08-19Auto merge of #4417 - kraai:remove-in_macro_or_desugar, r=phanschbors-146/+127
Remove in_macro_or_desugar `in_macro_or_desugar` is just a wrapper around `Span::from_expansion`, so remove the former and call the latter instead. changelog: Remove `in_macro_or_desugar`.
2019-08-19Restore en dashesKRAAI, MATTHEW [VISUS]-2/+2
2019-08-19Remove in_macro_or_desugarKRAAI, MATTHEW [VISUS]-148/+129
2019-08-19Import rustc_plugin from its new locationSimon Sapin-16/+12
Depends on https://github.com/rust-lang/rust/pull/62727
2019-08-19Auto merge of #4414 - chansuke:fix-contributing-doc, r=phanschbors-1/+1
Fix the name of a channel of discord in CONTRIBUTING.md Fixes #4400. changelog: none Update the naming of the Discord channel.
2019-08-19Fix the name of a channel of discord in CONTRIBUTING.mdchansuke-1/+1
2019-08-19Requested test cleanupJamie McClymont-54/+7
2019-08-19Auto merge of #4411 - mikerite:fix-4384, r=flip1995bors-32/+37
Fix `clone_on_copy` false positives Closes #4384 changelog: Fix `clone_on_copy` false positives
2019-08-19Auto merge of #4386 - lzutao:lint-option-and_then-some, r=flip1995bors-12/+215
Add option_and_then_some lint changelog: Add complexity lint to warn about `option.and_then(|o| Some(x))` and suggest replacing with `option.map(|o| x)`. Closes #4299
2019-08-19Auto merge of #4410 - matthiaskrgr:url_serde_feat, r=phanschbors-1/+2
deps: try to fix build in rustc repo: enable serde feature url dep in clippy-lints crate This might fix the problem in https://github.com/rust-lang/rust/pull/63587 I didn't have time to test this yet. r? @flip1995 changelog: enable serde feature of url dep in clippy-lints to depened on it in the same way cargo does
2019-08-19Fix `clone_on_copy` false positivesMichael Wright-32/+37
Closes #4384
2019-08-19Add testLzu Tao-0/+8
2019-08-19try to fix build in rustc repoMatthias Krüger-1/+2
2019-08-19Allow option_and_then_some in option_map_or_none testLzu Tao-2/+6
2019-08-19Add option_and_then_some lintLzu Tao-10/+201
2019-08-19Requested changesJamie McClymont-19/+11
2019-08-18Auto merge of #4403 - xd009642:type_repetition_improvements, r=phansch,flip1995bors-4/+3
Improvements to `type_repetition_in_bounds` Improvements to the `type_repetition_in_bounds` trait based on feedback from #4380 #4326 #4323 Currently just make it pedantic. Hopefully, more to come changelog: move `type_repetition_in_bounds` to `pedantic`
2019-08-18Auto merge of #4404 - BO41:patch-1, r=flip1995bors-0/+6
Add "could be written as" example to MANUAL_MEMCPY <!-- Thank you for making Clippy better! We're collecting our changelog from pull request descriptions. If your PR only updates to the latest nightly, you can leave the `changelog` entry as `none`. Otherwise, please write a short comment explaining your change. If your PR fixes an issue, you can add "fixes #issue_number" into this PR description. This way the issue will be automatically closed when your PR is merged. If you added a new lint, here's a checklist for things that will be checked during review or continuous integration. - [ ] Followed [lint naming conventions][lint_naming] - [ ] Added passing UI tests (including committed `.stderr` file) - [ ] `cargo test` passes locally - [ ] Executed `./util/dev update_lints` - [ ] Added lint documentation - [ ] Run `./util/dev fmt` [lint_naming]: https://rust-lang.github.io/rfcs/0344-conventions-galore.html#lints Note that you can skip the above if you are just opening a WIP PR in order to get feedback. Delete this line and everything above before opening your PR --> changelog: none
2019-08-18Ignore lines starting with '#'Jeremy Stucki-1/+12
2019-08-18Run update_lintsxd009642-3/+2
2019-08-18Auto merge of #4394 - jeremystucki:suspicious_map, r=flip1995bors-3/+59
Implement "suspicious_map" lint Resolves #4010 changelog: New lint `suspicious_map`.
2019-08-19run-rustfix for unseparated-prefix-literalsJamie McClymont-0/+86
2019-08-18Change lint type to 'complexity'Jeremy Stucki-7/+11
2019-08-19Add autofixable suggestion for unseparated integer literal sufficesJamie McClymont-12/+36
2019-08-18Merge branch 'origin/master' into suspicious_mapJeremy Stucki-174/+153
2019-08-18Auto merge of #4407 - mikerite:fix-breakage-20190818, r=flip1995bors-30/+37
Fix breakage due to rust-lang/rust#61708 Includes commits from #4406 changelog: none
2019-08-18Fix breakage due to rust-lang/rust#61708Michael Wright-5/+17
2019-08-18Fix assertions_on_constants lintLzu Tao-33/+30
2019-08-18Make code cleaner and more readableLzu Tao-33/+31
2019-08-17Add "could be written as" example to MANUAL_MEMCPYBO41-0/+6
2019-08-17Made lint pedanticxd009642-1/+1
2019-08-16Auto merge of #4397 - kraai:remove-a, r=flip1995bors-3/+3
Remove "a" from single_match_else description changelog: none
2019-08-16Auto merge of #4392 - phansch:cleanups, r=flip1995bors-49/+0
Remove unused dev scripts/files 781794d4: Remove util/update_lints.py * This has been deprecated for ~10 months, so I think it's fine to remove now. 90a42937: Remove publishing things * Clippy is no longer published via crates.io, so these docs and the script are not needed anymore. changelog: none
2019-08-16Auto merge of #4398 - kraai:outer_expn_data, r=flip1995bors-67/+88
Use outer_expn_data instead of outer_expn_info `outer_expn_info` has been removed, so use its replacement, `outer_expn_data`, instead. changelog: none
2019-08-16Run rustfmtflip1995-4/+1
2019-08-16Use outer_expn_data instead of outer_expn_infoKRAAI, MATTHEW [VISUS]-65/+89
2019-08-16Remove "a" from single_match_else descriptionKRAAI, MATTHEW [VISUS]-3/+3
2019-08-16Auto merge of #4395 - lzutao:rustup-63586, r=phanschbors-26/+26
Rustup "Remove `Spanned` from `{ast,hir}::FieldPat`" Rustup https://github.com/rust-lang/rust/pull/63586 changelog: none
2019-08-16Rustup "Remove `Spanned` from `{ast,hir}::FieldPat`"Lzu Tao-26/+26
2019-08-15Add ui testJeremy Stucki-0/+15
2019-08-15Implement lint 'suspicious_map'Jeremy Stucki-2/+39
2019-08-15Remove util/update_lints.pyPhilipp Hansch-10/+0
This has been deprecated for ~10 months, so I think it's fine to remove now.
2019-08-15Remove publishing thingsPhilipp Hansch-39/+0
Clippy is no longer published via crates.io, so these docs and the script are not needed anymore.
2019-08-15Auto merge of #4391 - flip1995:toml_ver, r=phanschbors-1/+1
Also specify patch version of toml crate cc rust-lang/rust#63587 The patch update of the toml crate to version 0.5.3 recently broke some tests: #4378. For rustc, we have to define the complete version though. changelog: none
2019-08-15Also specify patch version of toml crateflip1995-1/+1