about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2019-07-17UI Test Cleanup: Extract match_ref_pats testsPhilipp Hansch-182/+191
2019-07-16Update UI testsPhilipp Hansch-45/+31
2019-07-16Auto merge of #4276 - phansch:uitestcleanup, r=flip1995bors-173/+191
UI Test Cleanup: Split up checked_unwrap tests Let's slowly bring that ticket closer to the finish line :snail: :checkered_flag: This splits up `tests/ui/checked_unwrap.rs` into: * `tests/ui/checked_unwrap/complex.rs` * `tests/ui/checked_unwrap/simple.rs` Based on the naming of the methods in the tests. changelog: none cc #2038
2019-07-16Allow no_effect lint Philipp Hansch-0/+1
for cleaner stderr file Co-Authored-By: Philipp Krones <hello@philkrones.com>
2019-07-16Remove commentPhilipp Hansch-1/+1
Co-Authored-By: Philipp Krones <hello@philkrones.com>
2019-07-16cargo fmtPhilipp Hansch-1/+0
2019-07-16UI Test Cleanup: Split up checked_unwrap testsPhilipp Hansch-173/+191
This splits up `tests/ui/checked_unwrap.rs` into: * `tests/ui/checked_unwrap/complex.rs` * `tests/ui/checked_unwrap/simple.rs` Based on the naming of the methods in the tests. cc #2038
2019-07-16Removed lintining on never type.daxpedda-34/+17
Abstracted repeating strings into statics.
2019-07-16Auto merge of #4275 - jayhardee9:fix/cmp-signum, r=flip1995bors-0/+44
Fix float_cmp false positive when comparing signum fixes #4248 changelog: Fix float_cmp false positive when comparing signum
2019-07-16UI Test Cleanup: Split out out_of_bounds_indexingPhilipp Hansch-158/+209
This moves the `out_of_bounds_indexing` lint tests to their own directory.
2019-07-15Auto merge of #4211 - flip1995:check_changelog, r=matthiaskrgrbors-0/+15
Check for changelog entry in PR bodies cc #4031 but now on the auto and try branches. (https://github.com/rust-lang/rust-clippy/issues/3955#issuecomment-502230021) changelog: none
2019-07-15LintJerry Hardee-4/+2
2019-07-15Fix float_cmp false positive when comparing signumJerry Hardee-0/+46
f1.signum() == f2.signum() f1.signum() != f2.signum() should not trigger a warning.
2019-07-15grep only lines, that start with 'changelog: 'flip1995-1/+1
2019-07-15Get PR number from bors commit messageflip1995-1/+2
2019-07-15Authenticate with github_api_tokenflip1995-1/+2
2019-07-15Check PRs for changelog entry in the bodyflip1995-0/+13
2019-07-15false positives fixes of `implicit_return`daxpedda-76/+137
- Handle returning macro statements properly - Handle functions that return never type - Handle functions that panic but do not return never type
2019-07-15Auto merge of #4273 - mikerite:deny-warnings, r=flip1995bors-2/+7
Deny warnings in CI changelog: none
2019-07-15Deny warnings in CIMichael Wright-2/+7
2019-07-15Auto merge of #3418 - phansch:add_travis_windows_build, r=me,flip1995bors-20/+32
Fix Travis Windows build Closes #3306
2019-07-14Disable dogfood on windows for faster build time on travisflip1995-2/+2
2019-07-14Revert "Remove `CARGO_INCREMENTAL=0` from windows build"flip1995-1/+1
This reverts commit 876a7e1f01cb14a63eee54cb44524a87161d5454. Using incremental build on windows increases the build time on travis by about 8 minutes.
2019-07-13Remove `CARGO_INCREMENTAL=0` from windows buildflip1995-1/+1
2019-07-13Test with different sysroots dependent on the OSflip1995-6/+11
2019-07-13Build sys_root in driver with PathBuf instead of Stringflip1995-6/+14
2019-07-13Don't re-set the LD_LIBRARY_PATH in base_tests.shflip1995-2/+0
2019-07-13Add master toolchain binaries to the PATHflip1995-1/+5
2019-07-13Change conditionalPhilipp Hansch-1/+1
Maybe uname == Linux was true on the windows VM? This could be a way to avoid the secret environment variable issue with Travis CI.
2019-07-13Stop allowing failures in Travis windows buildPhilipp Hansch-3/+0
2019-07-13Auto merge of #4229 - euclio:lint-doc-generation-fix, r=flip1995bors-12/+9
don't strip blank lines in lint documentation changelog: don't strip blank lines in lint documentation Fixes #4116. This PR also switches the docs headings to deterministically display in the order that they are declared in the source, with "Configuration" always appearing last. It doesn't seem like there was a defined order before.
2019-07-13Auto merge of #4232 - mikerite:dev-fmt-4, r=flip1995bors-53/+244
Add dev fmt subcommand changelog: none
2019-07-13Auto merge of #4268 - mikerite:fix-4260, r=flip1995bors-10/+26
Fix bug in `implicit_hasher` causing crashes Skip linting if the type is from an external macro. Closes #4260. changelog: Fix bug in `implicit_hasher` causing crashes
2019-07-13Merge branch 'master' into dev-fmt-4Michael Wright-34/+54
2019-07-12Auto merge of #4269 - lzutao:rustup, r=flip1995bors-12/+16
Rustup `macro expansion and resolution` Rustup https://github.com/rust-lang/rust/pull/62476 changelog: none
2019-07-12Rustup `macro expansion and resolution`Lzu Tao-12/+16
2019-07-11Fix bug in `implicit_hasher` causing crashesMichael Wright-10/+26
Skip linting if the type is from an external macro. Closes #4260.
2019-07-11Avoid rustfmt bug on WindowsMichael Wright-1/+5
2019-07-10Ignore generated fresh lifetimes in elision check.uHOOCCOOHu-0/+2
2019-07-09Auto merge of #4257 - skade:improve-cast-alignment, r=flip1995bors-6/+16
Improve cast_ptr_alignment lint <!-- 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. - [x] Followed [lint naming conventions][lint_naming] - [x] Added passing UI tests (including committed `.stderr` file) - [x] `cargo test` passes locally - [x] Executed `util/dev update_lints` - [x] Added lint documentation - [x] Run `cargo fmt` 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 --> * print alignment in bytes in the lint message * ignore ZST left-hand types Fixes #3797 and #4256 changelog: * `cast_ptr_alignment`: Print alignment in bytes in the lint message * `cast_ptr_alignment`: Ignore casting from ZST left-hand types
2019-07-09Improve cast_ptr_alignment lintFlorian Gilcher-6/+16
* print alignment in bytes in the lint message * ignore ZST left-hand types
2019-07-09Auto merge of #4265 - vks:patch-1, r=flip1995bors-1/+2
cast_ptr_alignment: Mention legal use under known problems Refs #2881. changelog: Mention know problems for cast_ptr_alignment
2019-07-09cast_ptr_alignment: Mention legal use under known problemsVinzent Steinberg-1/+2
Refs #2881.
2019-07-09Auto merge of #4264 - flip1995:appveyor, r=flip1995bors-2/+1
Disable AppVeyor builds on the master branch AppVeyor is already checked on every merge of a PR, rechecking it immediately after on the master branch is not necessary. Resolves #4263 changelog: none
2019-07-09Disable AppVeyor builds on the master branchflip1995-2/+1
AppVeyor is already checked on every merge of a PR, rechecking it immediately after on the master branch is not necessary.
2019-07-09Auto merge of #4233 - thiagoarrais:jens1o-fix-1208, r=phansch,flip1995bors-7/+13
Avoid reporting string_lit_as_bytes for long strings Port of @jens1o code ([b76f939][jens1o_commit]) Fixes #1208 [jens1o_commit]: https://github.com/jens1o/rust-clippy/commit/b76f939ac2efcfe24900c286b3b7713d972d9088 <!-- 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 `cargo fmt` 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: bugfix for long strings as bytes
2019-07-09Auto merge of #4262 - bara86:master, r=flip1995bors-6/+6
Use empty block instead of unit type for needless return fixes #4238 changelog: Use empty block instead of unit type for needless return
2019-07-08Extract semantic constantThiago Arrais-1/+4
2019-07-08Use empty block instead of unit type for needless returnBara-6/+6
2019-07-08Avoid reporting string_lit_as_bytes for long stringsJens Hausdorf-7/+10
Port of @jens1o code ([b76f939][jens1o_commit]) Fixes #1208 [jens1o_commit]: https://github.com/jens1o/rust-clippy/commit/b76f939ac2efcfe24900c286b3b7713d972d9088 Co-authored-by: Thiago Arrais <thiago.arrais@gmail.com>