Cameron Steffen
ada8c72f3f
Add version = "Two" to rustfmt.toml
...
Ignore UI tests since this change makes rustfmt less friendly with UI
test comments.
2021-03-01 16:17:33 -06:00
flip1995
da65d8166f
Don't trigger use_self in macros
2021-02-10 11:57:28 +01:00
Philipp Hansch
92f2bbbe06
Fix macro issues with field_reassign_with_default
2021-01-05 20:31:13 +01:00
Philipp Hansch
12bd244caa
Don't trigger large_enum_variant in external macros
2020-12-21 11:09:49 +01:00
chansuke
faa3e23316
Add exteranal macros for as_conversions
2020-11-10 18:54:47 +09:00
ThibsG
bab338685f
No lint in external macro for toplevel_ref_arg
2020-10-26 10:14:03 +01:00
Eduardo Broto
d17edaa152
Merge remote-tracking branch 'upstream/master' into rustup
2020-10-23 14:37:17 +02:00
varkor
fcde7683fe
Fix clippy tests
2020-10-22 13:23:14 +01:00
ThibsG
32fdb8fb0c
Lint on identical variable used as args in assert_eq!
macro call
2020-10-12 23:38:31 +02:00
flip1995
fbf2430f02
Merge commit '2f6439ae6a6803d030cceb3ee14c9150e91b328b' into clippyup
2020-10-09 12:45:29 +02:00
Eduardo Broto
101e76f117
needless arbitrary self: handle macros
2020-09-28 19:17:22 +02:00
Eduardo Broto
1cb3c00cba
Use emit=link for auxiliary proc macro crates
2020-09-25 15:46:32 +02:00
flip1995
282c59820b
Merge commit '3d0b0e66afdfaa519d8855b338b35b4605775945' into clippyup
2020-08-28 18:43:25 +02:00
Christian Stefanescu
5b07b9ed61
Widen understanding of prelude import
...
Prelude imports are exempt from wildcard import warnings. Until now only
imports of the form
```
use ...::prelude::*;
```
were considered. This change makes it so that the segment `prelude` can
show up anywhere, for instance:
```
use ...::prelude::v1::*;
```
Fixes #5917
2020-08-22 14:22:02 +02:00
flip1995
80bcbf521c
Merge commit 'c2c07fa9d095931eb5684a42942a7b573a0c5238' into clippyup
2020-06-23 17:05:22 +02:00
Devin R
d4f60b5ff4
wip: of handling nested import paths for multi-macro paths
2020-06-08 16:00:33 -04:00
Devin R
8ffbf6f94d
use hashset not map for keeping track of seen macro refs
...
remove stdout, fix clippy warnings, fmtcar
2020-06-08 16:00:33 -04:00
Devin R
ede366be63
collected all the imports and names
...
how to compare macro to import path
add more imports to test
2020-06-08 16:00:30 -04:00
flip1995
a0e9f9bd0d
Merge commit '7ea7cd165ad6705603852771bf82cc2fd6560db5' into clippyup2
2020-05-28 15:45:24 +02:00
Philipp Hansch
67167be167
Make empty_line_after_outer_attr an early lint
2020-05-26 16:52:02 +02:00
Vadim Petrochenkov
2d10babb71
Stabilize fn-like proc macros in expression, pattern and statement positions
2020-05-03 19:24:41 +03:00
Matthias Krüger
aff57e0f43
rustup https://github.com/rust-lang/rust/pull/70536
2020-03-30 11:17:58 +02:00
flip1995
8a572a540a
Add tests for wildcard_imports lint
2020-02-21 11:02:25 +01:00
Krishna Sai Veera Reddy
a3a1587a1c
Allow option-env-unwrap
within external macros
2020-02-09 10:58:08 -08:00
Yuki Okushi
95c369fa91
Add skip_while_next
lint
2020-01-20 10:56:02 +09:00
Andre Bogus
539cd25262
External macro check for missing_*_doc
2020-01-04 20:19:14 +01:00
Krishna Veera Reddy
26812f733d
Prevent mem_replace_with_default
lint within macros
...
Also added test cases for internal and external macros.
2019-12-31 09:22:34 -08:00
daxpedda
946961d19e
Change to only detect in external macros.
2019-12-05 11:06:13 +01:00
Manish Goregaokar
fe90b82951
Remove clippy_lints from useless attribute test
2019-11-07 12:53:36 -08:00
Philipp Hansch
52f52900a4
Don't emit try_err lint in external macros
2019-10-24 07:52:01 +02:00
flip1995
2d6adb9424
Add regression test for ICE in use-self lint
2019-10-15 15:02:09 +02:00
Andre Bogus
cc622608db
new lints around #[must_use]
fns
...
`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-14 12:09:04 +02:00
Michael Wright
de7749832c
Fix bug in implicit_hasher
causing crashes
...
Skip linting if the type is from an external macro. Closes #4260 .
2019-07-11 08:47:05 +02:00
Philipp Hansch
9a24ab8466
Add tests for empty_loop lint
2019-05-12 13:07:58 +02:00
Philipp Hansch
60a1759b5f
Add test for derives for used_underscore_binding lint
...
This closes #852 as I can't reproduce the original issue anymore.
2019-04-20 09:33:13 +02:00
Philipp Hansch
2b0dc39f5b
Don't emit useless_attribute lint in external macros
2019-04-10 07:30:59 +02:00
Philipp Hansch
a5d3f37c5a
Use compiletest's aux-build header instead of include macro
2019-01-02 22:48:44 +01:00