| Age | Commit message (Collapse) | Author | Lines |
|
|
|
|
|
|
|
Implement better help for clippy-driver
https://github.com/rust-lang/rust-clippy/issues/4173
|
|
Typos and minor grammar corrections
Just some minor grammar issues and typos in documentation.
|
|
Fix wrong lifetime of TyCtxt
Rustup https://github.com/rust-lang/rust/pull/61722
changelog: none
|
|
|
|
Sometimes travis gets slow and makes the builds spurious failure because
of no output in 10 minutes. This commit increase Travis timing-out time
at most 30 minutes before terminating the build.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Co-Authored-By: Philipp Krones <hello@philkrones.com>
|
|
|
|
|
|
Adds lint for integer division
Hi, folks! This is my first contribution to clippy and my first real piece of Rust code.
This is supposed to add a lint that warns for division of integers (#109). Please let me know if you need any changes.
Fixes #109
changelog: Add lint for integer division
|
|
|
|
redundant_closure_for_method_calls fixes
lint does not trigger when there is a difference in mutability
lint does not trigger when the method belongs to a trait which is not implemebted directly (Deref)
<!--
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: none
|
|
lint does not trigger when there is a difference in mutability
lint does not trigger when the method belongs to a trait which is not implemebted directly (Deref)
|
|
Fix implicit_return docs
Resolves #4197
changelog: none
|
|
rustup
changelog: none
cc @lzutao
r? @phansch
|
|
|
|
|
|
|
|
Fixing eta with respect to lazy evaluation.
This fixes #4187
changelog: `redundant_closure`: stop linting on expressions returning a function, which is then directly used by the closure
|
|
|
|
|
|
rustup https://github.com/rust-lang/rust/pull/61669/
changelog: none
|
|
|
|
|
|
Add OUTER_EXPN_INFO lint
changelog: none
|
|
|
|
|
|
Remove `to_string()`s from CompilerLintFunctions
changelog: none
|
|
add suggestions for print/write with newline lint
changelog: Add machine-applicable suggestions for `print!`/`write!` with newline lints.
|
|
rustup https://github.com/rust-lang/rust/pull/57428/
changelog: none
|
|
|
|
|
|
Fix .map(..).unwrap_or_else(..) bad suggestion
Closes #4144
|
|
Co-Authored-By: Philipp Krones <hello@philkrones.com>
|
|
Do not install rustup-toolchain if it is in PATH
I find it quiet annoying because I manually build `rustup-toolchain-install-master`
and install it in `PATH` other than in `~/.cargo/bin`. So everytime I run the script,
it always reinstall `rustup-toolchain-install-master` for me.
changelog: none
|
|
Add example to needless_range_loop
adds a "could be written as" example
btw, is it correct that the lint triggers even if the index is used not just for getting the values by index?
So that I have to add `.iter().enumerate()` to still get an index?
changelog: none
|
|
doc: Remove `pub` from trait definition in foo lint example
changelog: none
|
|
Bump cargo metadata
Sorry, I forgot to bump `cargo_metadata` in sub-crates.
changelog: none
r? @matthiaskrgr
|
|
|