]> git.lizzy.rs Git - rust.git/log
rust.git
3 years agoMove cast_possible_wrap to its own module
Yoshitomo Nakanishi [Tue, 9 Mar 2021 07:11:46 +0000 (16:11 +0900)]
Move cast_possible_wrap to its own module

3 years agoMove cast_sign_loss to its own module
Yoshitomo Nakanishi [Tue, 9 Mar 2021 03:37:46 +0000 (12:37 +0900)]
Move cast_sign_loss to its own module

3 years agoMove cast_possible_truncation to its own module
Yoshitomo Nakanishi [Tue, 9 Mar 2021 03:10:59 +0000 (12:10 +0900)]
Move cast_possible_truncation to its own module

3 years agoMove cast_lossless to its own module
Yoshitomo Nakanishi [Tue, 9 Mar 2021 02:44:52 +0000 (11:44 +0900)]
Move cast_lossless to its own module

3 years agoMove cast_precision_loss to its own module
Yoshitomo Nakanishi [Tue, 9 Mar 2021 02:22:17 +0000 (11:22 +0900)]
Move cast_precision_loss to its own module

3 years agoMove 'is_isize_or_usize' to clippy_utils
Yoshitomo Nakanishi [Tue, 9 Mar 2021 02:08:26 +0000 (11:08 +0900)]
Move 'is_isize_or_usize' to clippy_utils

3 years agoSeparate lints of casts group from types group
Yoshitomo Nakanishi [Tue, 9 Mar 2021 01:57:25 +0000 (10:57 +0900)]
Separate lints of casts group from types group

3 years agoAuto merge of #6871 - camsteffen:redundant-closure-macro, r=Manishearth
bors [Mon, 8 Mar 2021 21:32:21 +0000 (21:32 +0000)]
Auto merge of #6871 - camsteffen:redundant-closure-macro, r=Manishearth

Fix redundant closure with macros

changelog: Fix redundant_closure FPs with macros

Fixes #6732
Fixes #6850
Fixes #4354 (addresses the error message confusion)

3 years agoImprove the redundant_closure message
Cameron Steffen [Mon, 8 Mar 2021 19:05:13 +0000 (13:05 -0600)]
Improve the redundant_closure message

3 years agoFix redundant closure with macros
Cameron Steffen [Mon, 8 Mar 2021 18:59:58 +0000 (12:59 -0600)]
Fix redundant closure with macros

3 years agoAuto merge of #6725 - Y-Nak:refactor-types-lints, r=flip1995
bors [Mon, 8 Mar 2021 16:03:20 +0000 (16:03 +0000)]
Auto merge of #6725 - Y-Nak:refactor-types-lints, r=flip1995

Refactor types lints

Ref #6724.
As described in #6724, `types.rs` contains many groups inside it.
In this PR, I reorganize the lints of the `types` group into their own modules.

changelog: none

3 years agoFix some lints in types that fail dogfood
Yoshitomo Nakanishi [Thu, 25 Feb 2021 16:06:15 +0000 (01:06 +0900)]
Fix some lints in types that fail dogfood

3 years agoImport declared lints at the top of the file
Yoshitomo Nakanishi [Tue, 16 Feb 2021 13:18:53 +0000 (22:18 +0900)]
Import declared lints at the top of the file

3 years agoRemove unused is_local from borrowed_box
Yoshitomo Nakanishi [Fri, 12 Feb 2021 06:26:36 +0000 (15:26 +0900)]
Remove unused is_local from borrowed_box

3 years agoMove borrowed_box to its own module
Yoshitomo Nakanishi [Fri, 12 Feb 2021 06:22:07 +0000 (15:22 +0900)]
Move borrowed_box to its own module

3 years agoMove linked_list to its own module
Yoshitomo Nakanishi [Fri, 12 Feb 2021 05:28:17 +0000 (14:28 +0900)]
Move linked_list to its own module

3 years agoMove option_option to its own module
Yoshitomo Nakanishi [Fri, 12 Feb 2021 05:24:02 +0000 (14:24 +0900)]
Move option_option to its own module

3 years agoAdd flags to detect lints are triggered
Yoshitomo Nakanishi [Fri, 12 Feb 2021 05:11:04 +0000 (14:11 +0900)]
Add flags to detect lints are triggered

3 years agoMove vec_box to its own module
Yoshitomo Nakanishi [Fri, 12 Feb 2021 05:00:17 +0000 (14:00 +0900)]
Move vec_box to its own module

3 years agoMove rc_buffer to its own module
Yoshitomo Nakanishi [Fri, 12 Feb 2021 03:09:36 +0000 (12:09 +0900)]
Move rc_buffer to its own module

3 years agoMove redundant_allocation to its own module
Yoshitomo Nakanishi [Thu, 11 Feb 2021 08:41:14 +0000 (17:41 +0900)]
Move redundant_allocation to its own module

3 years agoMove box_vec to its own module
Yoshitomo Nakanishi [Thu, 11 Feb 2021 08:32:46 +0000 (17:32 +0900)]
Move box_vec to its own module

3 years agoCreate types dir and move old module under it
Yoshitomo Nakanishi [Thu, 11 Feb 2021 04:54:35 +0000 (13:54 +0900)]
Create types dir and move old module under it

3 years agoAuto merge of #6834 - hyd-dev:clippy-args, r=phansch,flip1995,oli-obk
bors [Mon, 8 Mar 2021 13:18:39 +0000 (13:18 +0000)]
Auto merge of #6834 - hyd-dev:clippy-args, r=phansch,flip1995,oli-obk

Let Cargo track CLIPPY_ARGS

This PR makes `clippy-driver` emit `CLIPPY_ARGS` in its `dep-info` output.

Just like #6441, this allows this workflow to work:
```shell
cargo clippy # warning: empty `loop {}` wastes CPU cycles
cargo clippy -- -A clippy::empty_loop # no warnings emitted
```
But without rebuilding all dependencies.

cc https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/CLIPPY_ARGS.20is.20not.20tracked.20by.20Cargo/near/228599088

changelog: Cargo now re-runs Clippy if arguments after `--` provided to `cargo clippy` are changed.

3 years agoDon't panic if `CLIPPY_ARGS` is not Unicode
hyd-dev [Mon, 8 Mar 2021 10:49:41 +0000 (18:49 +0800)]
Don't panic if `CLIPPY_ARGS` is not Unicode

3 years agoMove `test_no_deps_ignores_path_deps_in_workspaces()` out of `dogfood_subprojects()`
hyd-dev [Mon, 8 Mar 2021 10:29:36 +0000 (18:29 +0800)]
Move `test_no_deps_ignores_path_deps_in_workspaces()` out of `dogfood_subprojects()`

3 years agoRename `ClippyArgsCallbacks` to `RustcCallbacks`
hyd-dev [Mon, 8 Mar 2021 10:28:43 +0000 (18:28 +0800)]
Rename `ClippyArgsCallbacks` to `RustcCallbacks`

3 years agoAuto merge of #6864 - giraffate:fix_doc_adding_a_new_lint, r=Manishearth
bors [Mon, 8 Mar 2021 03:54:32 +0000 (03:54 +0000)]
Auto merge of #6864 - giraffate:fix_doc_adding_a_new_lint, r=Manishearth

Add msrv to contents in adding lints md

changelog: none

3 years agoAdd msrv to contents in adding lints md
Takayuki Nakata [Mon, 8 Mar 2021 00:27:59 +0000 (09:27 +0900)]
Add msrv to contents in adding lints md

3 years agoAuto merge of #6807 - anall:feature/use_new_diagnostics, r=Manishearth
bors [Mon, 8 Mar 2021 00:04:48 +0000 (00:04 +0000)]
Auto merge of #6807 - anall:feature/use_new_diagnostics, r=Manishearth

migrate paths to newly-added diagnostic items

This gets rid of the following paths:
  * OS_STRING
  * TO_OWNED
  * TO_STRING

Removes some usages of:
 * PATH_BUF

Per #5393

also removes unneeded `is_ty_param_path` from `clippy_lints::types` and relocates `is_ty_param_lang_item` and `is_ty_param_diagnostic_item` to `clippy_utils`.

changelog: none

3 years agorelocate functions from `clippy_lints::types`
Andrea Nall [Sun, 7 Mar 2021 23:58:39 +0000 (17:58 -0600)]
relocate functions from `clippy_lints::types`

relocate `is_ty_param_lang_item` and `is_ty_param_diagnostic_item` to `clippy_utils`

3 years agomigrate paths to newly-added diagnostic items
Andrea Nall [Sat, 27 Feb 2021 01:10:17 +0000 (19:10 -0600)]
migrate paths to newly-added diagnostic items

This gets rid of the following paths:
  * OS_STRING
  * TO_OWNED
  * TO_STRING

Also removes some usages of:
  * PATH_BUF

And the now completely unused `clippy_lints::types::is_ty_param_path`

3 years agoAuto merge of #6853 - Jarcho:len_without_is_empty_fp, r=Manishearth
bors [Sun, 7 Mar 2021 22:58:11 +0000 (22:58 +0000)]
Auto merge of #6853 - Jarcho:len_without_is_empty_fp, r=Manishearth

`len_without_is_empty` will now consider multiple impl blocks

fixes #1562

This also reverts #1559 as the `#[allow]` now works on the `len` method. A note has also been added to point out where the `empty` method is, if it exists.

changelog: `len_without_is_empty` will now consider multiple impl blocks
changelog: `len_without_is_empty` will now consider `#[allow]` on both the `len` method, and the type definition

3 years ago`len_without_is_empty` will now consider multiple impl blocks
Jason Newcomb [Fri, 5 Mar 2021 18:01:13 +0000 (13:01 -0500)]
`len_without_is_empty` will now consider multiple impl blocks
`len_without_is_empty` will now consider `#[allow]` on both the `len` method, and the type definition

3 years agoAuto merge of #6823 - Jarcho:diagnostic_items, r=phansch
bors [Sun, 7 Mar 2021 12:04:42 +0000 (12:04 +0000)]
Auto merge of #6823 - Jarcho:diagnostic_items, r=phansch

Use diagnostic or language items instead of paths

I think that gets everything except ones used in a list of paths to check.

changelog: none

3 years agoUse `LanguageItems::require`
Jason Newcomb [Tue, 2 Mar 2021 18:06:30 +0000 (13:06 -0500)]
Use `LanguageItems::require`

3 years agoAuto merge of #6854 - mgacek8:6844_fix_doc_for_useless_format_lint, r=phansch
bors [Sat, 6 Mar 2021 13:32:04 +0000 (13:32 +0000)]
Auto merge of #6854 - mgacek8:6844_fix_doc_for_useless_format_lint, r=phansch

useless_format: fix examples in the description

fixes #6844
changelog: useless_format: fix examples in the description

3 years agoAuto merge of #6848 - matthiaskrgr:lintcheck_clippyfix, r=llogiq
bors [Fri, 5 Mar 2021 21:10:52 +0000 (21:10 +0000)]
Auto merge of #6848 - matthiaskrgr:lintcheck_clippyfix, r=llogiq

lintcheck: add --fix mode which tries to apply lint suggestions to th…

…e sources and prints a warning if that fails

Great for spotting false positives/broken suggestions of applicable lints.

There are false positives though because I'm not sure yet how to silence rustc warnings while keeping clippy warnings.
Sometimes rustc makes a suggestion that fails to apply and the implementation does not differentiate between clippy and rustc warnings when applying lint suggestions.

changelog: none

3 years agouseless_format: fix examples in the description
Mateusz Gacek [Fri, 5 Mar 2021 20:11:31 +0000 (12:11 -0800)]
useless_format: fix examples in the description

"Good" example was something not acceptable by the useless_format lint.

3 years agoAuto merge of #6852 - camsteffen:avoid-mir, r=Manishearth
bors [Fri, 5 Mar 2021 17:30:43 +0000 (17:30 +0000)]
Auto merge of #6852 - camsteffen:avoid-mir, r=Manishearth

Remove a couple MIR usages

changelog: none

We use MIR to get the return type of a closure/function in a couple places. But typeck seems like a better approach.

This is the easy part of #6080.

Also did a tiny cleanup with `typeck` -> `typeck_body`.

3 years agoUse typeck_body
Cameron Steffen [Fri, 5 Mar 2021 16:35:39 +0000 (10:35 -0600)]
Use typeck_body

3 years agoAvoid mir in missing_errors_doc
Cameron Steffen [Fri, 5 Mar 2021 16:32:15 +0000 (10:32 -0600)]
Avoid mir in missing_errors_doc

3 years agoAvoid mir in implicit_return
Cameron Steffen [Fri, 5 Mar 2021 16:13:59 +0000 (10:13 -0600)]
Avoid mir in implicit_return

3 years agolintcheck: add --fix mode which tries to apply lint suggestions to the sources and...
Matthias Krüger [Fri, 5 Mar 2021 08:30:12 +0000 (09:30 +0100)]
lintcheck: add --fix mode which tries to apply lint suggestions to the sources and prints a warning if that fails

Great for spotting false positives/broken suggestions of applicable lints.

There are false positives though becasue I'm not sure yet how to silence rustc warnings while keeping clippy warnings.
Sometimes rustc makes a suggestion that fails to apply and the implementation does not differenciate between clippy and rustc warnings when applying lint suggestions.

changelog: none

3 years agoAuto merge of #6849 - flip1995:dogfood-fix, r=matthiaskrgr
bors [Fri, 5 Mar 2021 14:09:24 +0000 (14:09 +0000)]
Auto merge of #6849 - flip1995:dogfood-fix, r=matthiaskrgr

Dogfood and CI fixes

The CI fix is practically #6829 rebased and squashed into one commit

Dogfood fix is a follow up of #6802

r? `@matthiaskrgr` for lintcheck changes

(best reviewed with whitespace changes hidden)

changelog: none

3 years agoExtract directory creation into its own function
flip1995 [Fri, 5 Mar 2021 13:06:43 +0000 (14:06 +0100)]
Extract directory creation into its own function

3 years agoFix dogfood errors in clippy_dev
flip1995 [Fri, 5 Mar 2021 10:10:15 +0000 (11:10 +0100)]
Fix dogfood errors in clippy_dev

3 years agoFix dogfood errors in clippy_lints
flip1995 [Fri, 5 Mar 2021 10:08:25 +0000 (11:08 +0100)]
Fix dogfood errors in clippy_lints

3 years agoRemove hack that forces dogfood to run on nightly
flip1995 [Fri, 5 Mar 2021 09:31:21 +0000 (10:31 +0100)]
Remove hack that forces dogfood to run on nightly

This isn't necessary anymore, since we don't use a custom toolchain anymore

3 years agoFix dogfood test
flip1995 [Fri, 5 Mar 2021 09:30:26 +0000 (10:30 +0100)]
Fix dogfood test

Since clippy cannot be a workspace, we have to check the sub-crates separately

3 years agoci: Sync clippy and clippy_bors workflows
flip1995 [Fri, 5 Mar 2021 09:27:30 +0000 (10:27 +0100)]
ci: Sync clippy and clippy_bors workflows

Those workflows should always test exactly the same things

3 years agoAuto merge of #6846 - matthiaskrgr:lintcheck_test, r=Manishearth
bors [Thu, 4 Mar 2021 23:28:50 +0000 (23:28 +0000)]
Auto merge of #6846 - matthiaskrgr:lintcheck_test, r=Manishearth

lintcheck: add test (but don't run on ci)

This is the rest of https://github.com/rust-lang/rust-clippy/pull/6829 but without adding anything to ci

*Please write a short comment explaining your change (or "none" for internal only changes)*
changelog: none

3 years agoupdate lintcheck logs
Matthias Krüger [Thu, 4 Mar 2021 21:40:04 +0000 (22:40 +0100)]
update lintcheck logs

3 years agolintcheck: add test
Matthias Krüger [Thu, 4 Mar 2021 21:33:22 +0000 (22:33 +0100)]
lintcheck: add test

3 years agoAuto merge of #6843 - Jarcho:match_on_same_arms_macro, r=Manishearth
bors [Thu, 4 Mar 2021 18:23:39 +0000 (18:23 +0000)]
Auto merge of #6843 - Jarcho:match_on_same_arms_macro, r=Manishearth

Compare empty blocks for equality based on tokens

fixes: #1390

This only considers empty blocks for now, though we should also catch something like this:

```rust
match 0 {
    0 => {
        do_something();
        trace!(0);
        0
    }
    1 => {
        do_something();
        trace!(1);
        1
    }
    x => x,
}
```

As far as I can tell there aren't any negative effects on other lints. These blocks only happen to be the same for a given compilation, not all compilations.

changelog: Fix `match_on_same_arms` and others. Only consider empty blocks equal if the tokens contained are the same.

3 years agoAuto merge of #6833 - daxpedda:use-self, r=Manishearth
bors [Thu, 4 Mar 2021 17:35:06 +0000 (17:35 +0000)]
Auto merge of #6833 - daxpedda:use-self, r=Manishearth

Fix false-positive in `use_self`

Fixes  #6818.

changelog: Fix false positives for use_self in macros.

3 years agoWhen checking if two empty hir blocks are equal also check to see if the tokens used...
Jason Newcomb [Thu, 4 Mar 2021 16:06:24 +0000 (11:06 -0500)]
When checking if two empty hir blocks are equal also check to see if the tokens used are the same as well

3 years agoAuto merge of #6839 - matthiaskrgr:lintcheck_clippy_warnings, r=flip1995
bors [Thu, 4 Mar 2021 11:43:05 +0000 (11:43 +0000)]
Auto merge of #6839 - matthiaskrgr:lintcheck_clippy_warnings, r=flip1995

lintcheck: fix clippy warnings

split out from https://github.com/rust-lang/rust-clippy/pull/6829
changelog: none

3 years agolintcheck: fix clippy warnings
Matthias Krüger [Tue, 2 Mar 2021 19:20:51 +0000 (20:20 +0100)]
lintcheck: fix clippy warnings

3 years agoAuto merge of #6825 - djc:naive-bytecount-pedantic, r=Manishearth
bors [Wed, 3 Mar 2021 21:26:24 +0000 (21:26 +0000)]
Auto merge of #6825 - djc:naive-bytecount-pedantic, r=Manishearth

Move naive_bytecount to pedantic

As discussed on Zulip, current best practice is to avoid recommending
external crates. This lint is from before that was enforced. Move it
to the pedantic group to avoid enabling it by default.

https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/naive_bytecount.20suggesting.20extra.20dependency

changelog: move [`naive_bytecount`] to pedantic

3 years agoLet Cargo track `CLIPPY_ARGS`
hyd-dev [Wed, 3 Mar 2021 14:06:36 +0000 (22:06 +0800)]
Let Cargo track `CLIPPY_ARGS`

3 years agoFix false-positive in `use_self`
daxpedda [Wed, 3 Mar 2021 16:32:49 +0000 (17:32 +0100)]
Fix false-positive in `use_self`

3 years agoAuto merge of #6824 - Y-Nak:refactor_loops_module, r=flip1995
bors [Wed, 3 Mar 2021 10:34:22 +0000 (10:34 +0000)]
Auto merge of #6824 - Y-Nak:refactor_loops_module, r=flip1995

Refactor: organize loops file into loops module (Delegated)

`@flip1995` `@nahuakang`

closes #6693
r? `@flip1995`

 As we talked about in the PM of Zulip,  this PR is a delegated PR from `@nahuakang.`

Changes from the last commit of #6693:
1. Unify the name of the main entries of all modules to check, that was pointed out [here](https://github.com/rust-lang/rust-clippy/pull/6693#discussion_r582897713)
2. Simplify ` check_for_loop_arg`, that was pointed out [here](https://github.com/rust-lang/rust-clippy/pull/6693#discussion_r582914044) and [here](https://github.com/rust-lang/rust-clippy/pull/6693#discussion_r582929910)
3. Resolve conflicts

changelog: Refactor `loops.rs` file into `loops` module.

3 years agoAuto merge of #6801 - Jarcho:manual_match_fix, r=phansch
bors [Tue, 2 Mar 2021 15:36:00 +0000 (15:36 +0000)]
Auto merge of #6801 - Jarcho:manual_match_fix, r=phansch

Fix `manual_map` false positives

fixes: #6795
fixes: #6797
fixes: #6811
fixes: #6819

changelog: Fix false positives for `manual_map` when `return`, `break`, `continue`, `yield`, `await`, and partially moved values are used.
changelog: Don't expand macros in suggestions  for `manual_map`

3 years agoMove naive_bytecount to pedantic
Dirkjan Ochtman [Tue, 2 Mar 2021 13:26:23 +0000 (14:26 +0100)]
Move naive_bytecount to pedantic

As discussed on Zulip, current best practice is to avoid recommending
external crates. This lint is from before that was enforced. Move it
to the pedantic group to avoid enabling it by default.

https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/naive_bytecount.20suggesting.20extra.20dependency

3 years agoRemove "for_loop_arg.rs"
Yoshitomo Nakanishi [Tue, 2 Mar 2021 12:09:04 +0000 (21:09 +0900)]
Remove "for_loop_arg.rs"

3 years agoAuto merge of #6791 - TaKO8Ki:iter-count, r=matthiaskrgr
bors [Tue, 2 Mar 2021 11:31:43 +0000 (11:31 +0000)]
Auto merge of #6791 - TaKO8Ki:iter-count, r=matthiaskrgr

New lint: `iter_count`

This pull request adds a new lint named `iter_count`.

---

closes https://github.com/rust-lang/rust-clippy/issues/6262

changelog: new lint `iter_count`

3 years agoAuto merge of #6716 - magurotuna:refactor-transmute-mod, r=flip1995
bors [Tue, 2 Mar 2021 09:44:03 +0000 (09:44 +0000)]
Auto merge of #6716 - magurotuna:refactor-transmute-mod, r=flip1995

Refactor: arrange transmute lints

This PR arranges `transmute` lints so that they can be accessed more easily.
Basically, I followed the instruction described in #6680 as to how to do the refactoring.

- `declare_clippy_lint!` and `impl LintPass` is placed in `transmute/mod.rs`
- Uitlity functions is placed in `transmute/utils.rs`
- Each lint function about `transmute` is moved into its own module, like `transmute/useless_transmute.rs`

For ease of review, I refactored step by step, keeping each commit small. For instance, all I did in
2451781 was to move  `useless_transmute` into its own module.

---

changelog: Refactor `transmute.rs` file into `transmute` module.

3 years agoMake check_cast private
Yusuke Tanaka [Wed, 10 Feb 2021 16:42:12 +0000 (01:42 +0900)]
Make check_cast private

3 years agoRefactor calls to lint check functions
Yusuke Tanaka [Wed, 10 Feb 2021 16:41:52 +0000 (01:41 +0900)]
Refactor calls to lint check functions

3 years agoCleanup imports
Yusuke Tanaka [Wed, 10 Feb 2021 16:29:45 +0000 (01:29 +0900)]
Cleanup imports

3 years agoMove transmutes_expressible_as_ptr_casts to its own module
Yusuke Tanaka [Wed, 10 Feb 2021 16:27:44 +0000 (01:27 +0900)]
Move transmutes_expressible_as_ptr_casts to its own module

3 years agoMove unsound_collection_transmute to its own module
Yusuke Tanaka [Wed, 10 Feb 2021 16:21:38 +0000 (01:21 +0900)]
Move unsound_collection_transmute to its own module

3 years agoMove transmute_float_to_int to its own module
Yusuke Tanaka [Wed, 10 Feb 2021 16:08:48 +0000 (01:08 +0900)]
Move transmute_float_to_int to its own module

3 years agoMove transmute_int_to_float to its own module
Yusuke Tanaka [Wed, 10 Feb 2021 16:03:08 +0000 (01:03 +0900)]
Move transmute_int_to_float to its own module

3 years agoMove transmute_int_to_bool to its own module
Yusuke Tanaka [Wed, 10 Feb 2021 15:55:32 +0000 (00:55 +0900)]
Move transmute_int_to_bool to its own module

3 years agoMove transmute_ptr_to_ptr to its own module
Yusuke Tanaka [Wed, 10 Feb 2021 15:50:09 +0000 (00:50 +0900)]
Move transmute_ptr_to_ptr to its own module

3 years agoMove transmute_bytes_to_str and transmute_ptr_to_ptr to transmute_ref_to_ref module
Yusuke Tanaka [Wed, 10 Feb 2021 15:40:57 +0000 (00:40 +0900)]
Move transmute_bytes_to_str and transmute_ptr_to_ptr to transmute_ref_to_ref module

3 years agoMove transmute_int_to_char to its own module
Yusuke Tanaka [Wed, 10 Feb 2021 15:18:45 +0000 (00:18 +0900)]
Move transmute_int_to_char to its own module

3 years agoMove transmute_ptr_to_ref to its own module
Yusuke Tanaka [Wed, 10 Feb 2021 15:10:19 +0000 (00:10 +0900)]
Move transmute_ptr_to_ref to its own module

3 years agoMove crosspointer_transmute to its own module
Yusuke Tanaka [Wed, 10 Feb 2021 15:02:21 +0000 (00:02 +0900)]
Move crosspointer_transmute to its own module

3 years agoMove wrong_transmute to its own module
Yusuke Tanaka [Wed, 10 Feb 2021 14:57:56 +0000 (23:57 +0900)]
Move wrong_transmute to its own module

3 years agoMove useless_transmute to its own module
Yusuke Tanaka [Wed, 10 Feb 2021 14:54:11 +0000 (23:54 +0900)]
Move useless_transmute to its own module

3 years agoAdd transmute/utils.rs
Yusuke Tanaka [Wed, 10 Feb 2021 14:15:06 +0000 (23:15 +0900)]
Add transmute/utils.rs

3 years agoCreate transmute directory
Yusuke Tanaka [Wed, 10 Feb 2021 13:59:08 +0000 (22:59 +0900)]
Create transmute directory

3 years agoSimplify check_for_loop_arg
Yoshitomo Nakanishi [Tue, 2 Mar 2021 03:41:06 +0000 (12:41 +0900)]
Simplify check_for_loop_arg

3 years agoUnify names of lint entry functions in loops to 'check'
Yoshitomo Nakanishi [Tue, 2 Mar 2021 02:49:14 +0000 (11:49 +0900)]
Unify names of lint entry functions in loops to 'check'

3 years agoInclude loops.rs changes from PR#6698
nahuakang [Mon, 22 Feb 2021 15:24:25 +0000 (16:24 +0100)]
Include loops.rs changes from PR#6698

3 years agoClean up: Rename some files to be consistent with lint names; import lints to each...
nahuakang [Sun, 21 Feb 2021 17:25:50 +0000 (18:25 +0100)]
Clean up: Rename some files to be consistent with lint names; import lints to each file

3 years agoMove check_for_loop_arg back to mod; split into 4 lint files
nahuakang [Sun, 21 Feb 2021 17:12:17 +0000 (18:12 +0100)]
Move check_for_loop_arg back to mod; split into 4 lint files

3 years agoMove MinifyingSugg into manual_memcpy
nahuakang [Sun, 21 Feb 2021 16:10:07 +0000 (17:10 +0100)]
Move MinifyingSugg into manual_memcpy

3 years agoRefactor while let loop to its own module
nahuakang [Sun, 21 Feb 2021 16:01:49 +0000 (17:01 +0100)]
Refactor while let loop to its own module

3 years agoRefactor empty loop to its own module
nahuakang [Sun, 21 Feb 2021 15:48:16 +0000 (16:48 +0100)]
Refactor empty loop to its own module

3 years agoRefactor while let on iterator lint to its module; rename for loop explicit counter...
nahuakang [Sun, 21 Feb 2021 15:37:09 +0000 (16:37 +0100)]
Refactor while let on iterator lint to its module; rename for loop explicit counter to explicit counter loop

3 years agoRefactor never loop to its own module
nahuakang [Sun, 21 Feb 2021 14:58:05 +0000 (15:58 +0100)]
Refactor never loop to its own module

3 years agoMove detect_manual_memcpy to its module; split up utils structs
nahuakang [Tue, 9 Feb 2021 22:27:03 +0000 (23:27 +0100)]
Move detect_manual_memcpy to its module; split up utils structs

3 years agoAdd detect_same_item_push to its own module
nahuakang [Tue, 9 Feb 2021 20:58:10 +0000 (21:58 +0100)]
Add detect_same_item_push to its own module

3 years agoAdd check_needless_collect to its own module
nahuakang [Tue, 9 Feb 2021 20:26:46 +0000 (21:26 +0100)]
Add check_needless_collect to its own module

3 years agoAdd check_infinite_loop to its own module
nahuakang [Tue, 9 Feb 2021 19:21:22 +0000 (20:21 +0100)]
Add check_infinite_loop to its own module

3 years agoRefactor check_for_single_element_loop to its own module
nahuakang [Mon, 8 Feb 2021 21:12:32 +0000 (22:12 +0100)]
Refactor check_for_single_element_loop to its own module