Long Louis Bui
8b8c63f568
changed non_copy_const lints to warn by default
2020-10-02 23:12:40 +02:00
nahuakang
f302af33bc
Add doc comment issue of #5834 to known problems of lint doc_markdown
2020-10-02 22:05:40 +02:00
Michael Howell
840f7daaad
Deprecate clippy lint
2020-10-02 11:34:14 -07:00
rail
b541884294
remove the explicit return value of print_limit
2020-10-02 23:38:10 +13:00
Dániel Buga
515ca93123
Look for soft hyphens as well
2020-10-02 11:56:21 +02:00
rail
2a0e45b8db
supress clippy::filter_map
2020-10-02 21:38:50 +13:00
rail
41a0ccbc57
add comments around loop_counters
2020-10-02 21:38:50 +13:00
rail
1402d8ae4f
fix a FN where incr exprs with no semicolon at ends
2020-10-02 21:18:37 +13:00
Michael Wright
e91202cf68
Allow exponent separator
...
Fixes #6096
2020-10-02 07:02:58 +02:00
rail
94d7b82340
simplify the code
2020-10-02 14:04:46 +13:00
rail
388384177e
document MinifyingSugg
and Offset
...
...and also swap their position
2020-10-02 13:30:50 +13:00
bors
8c9800a3a9
Auto merge of #6102 - giraffate:no_lint_when_invalid_suggestion_in_needless_range_loop, r=flip1995
...
Don't emit a lint for the suggestion leading to errors in `needless_range_loop`
Fix #5945
changelog: Don't emit a lint for the suggestion leading to errors in `needless_range_loop`
2020-10-01 16:29:08 +00:00
Takayuki Nakata
0a91fe7016
Don't emit a lint for the suggestion leading to errors in needless_range_loop
2020-10-02 00:49:05 +09:00
bors
d4313737d8
Auto merge of #5978 - montrivo:needless-lifetime, r=ebroto
...
needless-lifetime - nested elision sites
Closes #2944
changelog: fix needless-lifetime nested elision site FPs
2020-10-01 13:43:24 +00:00
bors
abce9e7c9f
Auto merge of #6092 - jethrogb:jb/inline-asm-syntax-lint, r=ebroto
...
Add lint for inline assembly syntax style preference
changelog: Add lint for inline assembly syntax style preference
2020-09-30 21:44:29 +00:00
Jethro Beekman
0690f9c5d5
Add lint for inline assembly syntax style preference
2020-09-30 09:43:46 +02:00
Tim Nielens
cb2be6f9db
needless-lifetime / pr remarks
2020-09-30 00:33:46 +02:00
Tim Nielens
aa2ac38fa7
needless-lifetime / add known problem item
2020-09-30 00:08:19 +02:00
Tim Nielens
7cfe3dc2eb
Merge branch 'master' into needless-lifetime
2020-09-29 22:51:59 +02:00
Eduardo Broto
101e76f117
needless arbitrary self: handle macros
2020-09-28 19:17:22 +02:00
rail
9725f00f4d
Use the From
trait to make MinifyingSugg
2020-09-28 02:27:55 +13:00
Eduardo Broto
8bf27c5e92
Fix dogfood
2020-09-27 15:22:33 +02:00
Eduardo Broto
cd4706413f
Run cargo dev fmt
2020-09-27 15:17:13 +02:00
Eduardo Broto
798a5cf5bc
Merge remote-tracking branch 'upstream/master' into rustup
2020-09-27 15:09:52 +02:00
rail
99aceebf1c
Use the spans of the entire for
loops for suggestions
2020-09-27 16:38:41 +13:00
rail
5c71352b18
Prevent unnecessary lints from triggering
2020-09-27 14:54:20 +13:00
rail
4918e7ad62
Replace snippet_opt
+ unwrap_or_else
with snippet
2020-09-27 14:19:43 +13:00
Jeremiah Senkpiel
00e641b914
lints: clarify rc_buffer and add caveats
...
This didn't display some types properly in the docs due the lack of code formatting.
Also, refs for the caveat:
https://github.com/rust-lang/rust-clippy/pull/6044#issuecomment-699559082
https://github.com/http-rs/surf/pull/242
2020-09-26 17:19:12 -07:00
bors
ea079eb8a4
Auto merge of #6081 - ilknarf:master, r=matthiaskrgr
...
New Lint: disallowed_method
Fixes https://github.com/rust-lang/rust-clippy/issues/6073
I added a `disallowed_method` lint that works similar to `blacklisted_name`, e.g allows config-defined disallowed method calls.
This lint allows advanced users to patch in undesired method calls for specific projects. It basically uses the DefId of method calls and matches it to parsed strings. Is there an alternative approach that could use more easily digestible configuration strings?
All tests pass as expected except for a linting error on `ui/redundant_pattern_matching_option`, which I am not sure how to resolve since I don't think I changed anything affecting it.
changelog: Add disallowed_method lint to warn on user-defined method calls
2020-09-26 20:55:53 +00:00
bors
b64d21d980
Auto merge of #6079 - giraffate:print_stdout_in_build_rs, r=ebroto
...
Fix FP in `print_stdout`
Fix #6041
This lint shouldn't be emitted in `build.rs` as `println!` and `print!` are used for the build script.
changelog: none
2020-09-26 20:34:35 +00:00
Oliver Scherer
7072e45c6c
Remove all unstable feature support in the missing_const_for_fn
lint
2020-09-26 16:23:56 +02:00
Takayuki Nakata
83294f894d
Some small fixes
2020-09-26 23:10:25 +09:00
Oliver Scherer
a6fda14394
Move qualify_min_const_fn
out of rustc into clippy
2020-09-26 16:08:24 +02:00
Frank
d18653158d
remove useless test, update disallowed_method description
2020-09-25 11:09:04 -05:00
Frank
f9da2946d8
update error message, refactor disallowed_method
2020-09-25 11:09:04 -05:00
Frank
3886edb05a
fix error message
2020-09-25 11:09:04 -05:00
Frank
725a0ef8b1
change config variables to reference, remove wildcard import
2020-09-25 11:09:04 -05:00
Frank
e1b3f85e98
run cargo dev fmt
2020-09-25 11:09:04 -05:00
Frank
12e5637f75
update unused variable
2020-09-25 11:09:04 -05:00
Frank
1479c18396
add disallowed_method lint
2020-09-25 11:09:04 -05:00
Takayuki Nakata
5b484b4057
Fix the detection of build scripts
2020-09-25 23:32:18 +09:00
bors
6273be6fc2
Auto merge of #77144 - flip1995:clippyup, r=Manishearth
...
Update Clippy
Bi-weekly Clippy update.
This includes a `Cargo.lock` update (d445493479711389f4dea3a0f433041077ba2088), so probably needs `rollup=never`.
r? `@Manishearth`
2020-09-25 06:23:55 +00:00
Jonas Schievink
a8c6073278
Rollup merge of #76724 - ecstatic-morse:dataflow-pass-names, r=lcnr
...
Allow a unique name to be assigned to dataflow graphviz output
Previously, if the same analysis were invoked multiple times in a single compilation session, the graphviz output for later runs would overwrite that of previous runs. Allow callers to add a unique identifier to each run so this can be avoided.
2020-09-25 02:29:31 +02:00
rail
e855fe3620
Reflect the changes that has been made and fmt
2020-09-25 09:02:05 +12:00
rail
ce653d65a8
use #[derive]
instead of the manual implementation
2020-09-25 09:02:05 +12:00
rail
f410df3c48
make clippy happy (needless_pass_by_value
, filter_map
and find_map
)
2020-09-25 09:02:05 +12:00
rail
44187383f4
Use operator overloading instead of direct calls of make_binop
2020-09-25 09:02:05 +12:00
rail
10d7a18f72
fmt
2020-09-25 09:02:05 +12:00
rail
eb3ffe6ed2
make use of macros in operator overloading
2020-09-25 09:02:05 +12:00
rail
d9a88be0b0
Rename get_offset
and its private items
2020-09-25 09:02:05 +12:00