about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2019-10-18Add todo and testsHeinz N. Gies-6/+89
2019-10-18add restirction for unreachable and panicHeinz Gies-4/+59
2019-10-18Fix suggestion span in `explicit_counter_loop`HMPerson1-15/+24
2019-10-18Auto merge of #4687 - lzutao:before-cache-appveyor, r=Manishearthbors-1/+1
appveyor: on_finish run after saving cache According to <https://www.appveyor.com/docs/build-configuration/#build-pipeline> on_finish step runs after saving cache step, we should use after_test instead. changelog: none
2019-10-18Suggest calling `iter` if needed in `explicit_counter_loop`HMPerson1-21/+67
2019-10-18Auto merge of #4685 - HMPerson1:patch-1, r=Manishearthbors-2/+2
Update adding_lints.md changelog: none
2019-10-18Auto merge of #4686 - lzutao:fix-travis-windows-stuck, r=Manishearthbors-1/+1
travis: Windows build might be stuck as non-supported languages See <https://docs.travis-ci.com/user/reference/windows/#supported-languages> for list of Windows supported languages. I'm sorry for making Travis Windows build stuck. changelog: none
2019-10-17Auto merge of #4683 - HMPerson1:inefficient_to_string, r=Manishearthbors-4/+216
Add `inefficient_to_string` lint Closes #4586 changelog: Add `inefficient_to_string` lint, which checks for calling `to_string` on `&&str`, which would bypass the `str`'s specialization
2019-10-17Update help text in `inefficient_to_string`Michael Zhang-7/+7
Co-Authored-By: Manish Goregaokar <manishsmail@gmail.com>
2019-10-17Auto merge of #4689 - Manishearth:rustup, r=Yaahcbors-4/+6
Rustup to rustc 1.40.0-nightly (fa0f7d008 2019-10-17) changelog: none
2019-10-17syntax::ext -> syntax_expandManish Goregaokar-4/+6
2019-10-18appveyor: on_finish run after saving cacheLzu Tao-1/+1
Use after_test instead
2019-10-18travis: Windows build might be stuck as non-supported languagesLzu Tao-1/+1
See <https://docs.travis-ci.com/user/reference/windows/#supported-languages> for list of Windows supported languages.
2019-10-17Auto merge of #4659 - lzutao:caching, r=phanschbors-3/+19
Cache cargo binaries changelog: none
2019-10-17Add `run-rustfix` to `inefficient_to_string`HMPerson1-7/+40
2019-10-17Update adding_lints.mdMichael Zhang-2/+2
2019-10-16Dogfood for `inefficient_to_string`HMPerson1-2/+2
2019-10-16Add `inefficient_to_string` lintHMPerson1-2/+181
2019-10-16Use CI caching and cargo feature install-upgradeLzu Tao-3/+19
* do not force to install rustfmt * use cargo-cache * disable bash trace * clone single branch
2019-10-16Auto merge of #4669 - lzutao:minimal-rustup, r=phanschbors-4/+6
build: use rustup minimal profile to speed up Rust installation time changelog: none
2019-10-15Auto merge of #4673 - Manishearth:rustup, r=phanschbors-4/+10
Rustup to rustc 1.40.0-nightly (237d54ff6 2019-10-15) changelog: none
2019-10-16build: use rustup minimal profile to speed up Rust installation timeLzu Tao-4/+6
2019-10-15Rustup to rustc 1.40.0-nightly (237d54ff6 2019-10-15)Manish Goregaokar-4/+10
2019-10-15Auto merge of #4668 - lzutao:update-rtim, r=flip1995bors-21/+25
build: switch back to latest official RTIM release Closes #4666 changelog: none
2019-10-15Auto merge of #4671 - flip1995:ice-4671, r=phanschbors-7/+48
Fix ICE in `use_self` lint The ICE is produced by building this span: https://github.com/rust-lang/rust-clippy/blob/55e7818a06c8d83bead9c81e10e73ba33fb20890/clippy_lints/src/use_self.rs#L55-L60 `span` can start in the file the macro is defined in and end where the macro is called. changelog: Fix ICE in `use_self` lint
2019-10-15Enable integration tests againflip1995-6/+6
futures-rs, hyper, rls
2019-10-15Fix ICE in use_self lintflip1995-1/+6
2019-10-15Add regression test for ICE in use-self lintflip1995-0/+36
2019-10-15travis: break out before_script stage to test setup-toolchain workLzu Tao-1/+4
2019-10-15build: do not trace deploy stepLzu Tao-17/+17
2019-10-15Early exit if there is any errorsLzu Tao-0/+2
2019-10-15build: switch back to latest official RTIM releaseLzu Tao-3/+2
2019-10-15Auto merge of #4619 - james9909:unused-self, r=flip1995bors-83/+373
Add a lint for unused self changelog: Adds a new lint: `unused_self` Closes #4550.
2019-10-15Change terminology from static to associatedJames Wang-11/+11
2019-10-15Switch to OnlyBodiesJames Wang-1/+1
2019-10-15Change lint to be pedanticJames Wang-191/+176
2019-10-15Remove printsJames Wang-2/+0
2019-10-15Add a new lint for unused selfJames Wang-202/+509
2019-10-14Auto merge of #4560 - rust-lang:must-use-pure, r=phanschbors-88/+924
new lints around`#[must_use]` changelog: Add `must_use_candidate` lint, add `must-use-unit` lint, add `double_must_use` lint The first one checks if an public function or method has no mutable argument and mutates no non-local data and lints if it has no `#[must_use]` attribute. It will skip inner functions, because those are usually highly local and the attribute doesn't have as much benefit there. The second lints `#[must_use]` attributes on functions and methods that return unit. Those attributes are likely a remnant from a refactoring that removed the return value. The last one lints for `#[must_use]` attributrs without text on functions that return a type which is already marked `#[must_use]`. This has no auto-suggestion, because while it would be easy to do, there may be value in writing a detailed text for the attribute instead. This fixes #4526
2019-10-14Auto merge of #4663 - lzutao:rustup, r=phanschbors-5/+6
Rustup changelog: none Suppresses #4662. r? @phansch
2019-10-14new lints around `#[must_use]` fnsAndre Bogus-88/+924
`must_use_unit` lints unit-returning functions with a `#[must_use]` attribute, suggesting to remove it. `double_must_use` lints functions with a plain `#[must_use]` attribute, but which return a type which is already `#[must_use]`, so the attribute has no benefit. `must_use_candidate` is a pedantic lint that lints functions and methods that return some non-unit type that is not already `#[must_use]` and suggests to add the annotation.
2019-10-14rustc-dev has been temporarily removedLzu Tao-3/+3
2019-10-14Use my RTIM forkLzu Tao-1/+2
2019-10-14Bump compiletestManish Goregaokar-1/+1
2019-10-12Auto merge of #4649 - Lythenas:use_match_function_call, r=phanschbors-62/+45
Use match_function_call wherever possible Move `match_function_call` to `utils` and use it wherever possible as discussed in #4635. changelog: none
2019-10-12Auto merge of #4654 - lzutao:rustc-dev, r=phanschbors-9/+9
Rustup for rustc-dev cc https://github.com/rust-lang/rust/pull/64823 Closes #4651 changelog: none
2019-10-12use git versionLzu Tao-2/+5
2019-10-11Fix ICE #4579flip1995-4/+6
2019-10-11Add regression test for ICE #4579flip1995-0/+13
2019-10-11Rustup for rustc-devLzu Tao-7/+4