Philipp Krones
631481ffb3
Merge remote-tracking branch 'upstream/master' into rustup
2023-01-12 18:59:59 +01:00
Philipp Krones
d05e2865a0
Merge commit 'd822110d3b5625b9dc80ccc442e06fc3cc851d76' into clippyup
2022-12-01 18:29:38 +01:00
Philipp Krones
11434f270f
Merge remote-tracking branch 'upstream/master' into rustup
2022-12-01 12:55:15 +01:00
Matthias Krüger
268d230231
Rollup merge of #104873 - RalfJung:therefore, r=Dylan-DPC
...
RefCell::get_mut: fix typo
and fix the same typo in a bunch of other places
2022-11-25 10:44:40 +01:00
Ralf Jung
424ae23958
RefCell::get_mut: fix typo
...
and fix the same typo in a bunch of other places
2022-11-25 08:52:06 +01:00
Philipp Krones
46c5a5d234
Merge commit 'f4850f7292efa33759b4f7f9b7621268979e9914' into clippyup
2022-11-21 20:51:52 +01:00
Alex Macleod
637139d2ff
Add clippy_utils::msrv::Msrv
to keep track of the current MSRV
2022-11-21 18:16:40 +00:00
bors
634987b49e
Auto merge of #9712 - Alexendoo:old-generated-files, r=flip1995
...
Remove `lib.register_*` and `src/docs*` in `cargo dev update_lints`
Follow up to #9709 / #9541
There's a good number of PRs with some leftover `src/docs` files for example, and as a reviewer it's something we're used to ignoring so it can easily slip through
r? `@flip1995`
changelog: none
2022-10-25 13:20:31 +00:00
Alex Macleod
22d435b266
Remove lib.register_*
and src/docs*
in cargo dev update_lints
2022-10-25 13:18:50 +00:00
Alex Macleod
bd8369089c
Track clippy.toml
and Cargo.toml
in file_depinfo
...
Causes cargo to re-run clippy when those paths are modified
Also tracks the path to `clippy-driver` in debug mode to remove the
workarounds in `cargo dev lint` and `lintcheck`
2022-10-25 11:32:49 +00:00
Alex Macleod
a201518a8a
Generate lint categories and explanations with declare_clippy_lint
...
Changes it to be a proc_macro rather than macro_rules
2022-10-23 20:32:26 +00:00
flip1995
cd0bb7de01
Merge commit '4f142aa1058f14f153f8bfd2d82f04ddb9982388' into clippyup
2022-10-23 15:18:45 +02:00
est31
f48d13f8d1
Replace manual let else patterns with let else
2022-10-11 00:12:16 +02:00
Samuel Moelius
9cc8da222b
Fix adjacent code
2022-10-07 05:07:44 -04:00
Philipp Krones
d75b25faab
Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup
2022-10-06 09:44:38 +02:00
bors
cb8da67194
Auto merge of #9509 - schubart:fix_sorting, r=llogiq
...
Fix sorting in ` cargo dev update_lints` script
changelog: none
The old code cloned and sorted `usable_lints` into `sorted_usable_lints`, but then failed to do anything with `sorted_usable_lints`.
This was discovered by my new `collection_is_never_read` lint (#9267 ) that I'm working on!
Fix: I renamed the sorted vector to `usable_lints`. Therefore it now gets used where the unsorted one was used previously.
2022-10-02 07:51:45 +00:00
Philipp Krones
bbcde66685
Merge remote-tracking branch 'upstream/master' into rustup
2022-09-28 14:27:32 +02:00
Pietro Albini
06568fd6c7
remove cfg(bootstrap)
2022-09-26 10:14:45 +02:00
Yuri Astrakhan
cc6b375cd3
fallout2: rework clippy_dev & _lints fmt inlining
...
* Inline format args where possible
* simplify a few complex macros into format str
* use formatdoc!() instead format!(indoc!(...))
2022-09-23 23:08:12 -04:00
Yuri Astrakhan
59d0e8caba
and a few more from other dirs
2022-09-23 14:25:03 -04:00
Michael Schubart
033dae9ecc
Actually use the sorted vector
2022-09-21 19:04:31 +01:00
David Koloski
4d015293d1
Merge commit '7248d06384c6a90de58c04c1f46be88821278d8b' into sync-from-clippy
2022-09-21 13:13:27 -04:00
Alex Macleod
6d8959ea83
Add #[allow(unused)]
to test in cargo dev new_lint
2022-09-16 21:04:38 +00:00
est31
2be8b73328
Fix clippy
2022-09-15 21:21:18 +02:00
Philipp Krones
98bf99e2f8
Merge commit 'b52fb5234cd7c11ecfae51897a6f7fa52e8777fc' into clippyup
2022-09-09 13:36:26 +02:00
Philipp Krones
4ee55c5528
Merge remote-tracking branch 'upstream/auto' into rustup
2022-09-08 21:27:09 +02:00
Jason Newcomb
abd3e7eabb
Allow lint passes to be bound by TyCtxt
2022-09-06 14:23:03 -04:00
Andre Bogus
ad72aee93c
add --explain
subcommand
2022-09-02 22:17:39 +02:00
Jason Newcomb
d4a0785464
Correctly handle unescape warnings
2022-09-01 00:00:37 -04:00
Jason Newcomb
fb41bfa774
Merge commit 'f51aade56f93175dde89177a92e3669ebd8e7592' into clippyup
2022-08-31 09:24:45 -04:00
Nilstrieb
ce847beb47
Revert let_chains stabilization
...
This reverts commit 3266460749
.
This is the revert against master, the beta revert was already done in #100538 .
2022-08-29 19:34:11 +02:00
bors
868dba9f65
Auto merge of #9295 - Guilherme-Vasconcelos:manual-empty-string-creation, r=dswij
...
Add `manual_empty_string_creations` lint
Closes #2972
- [x] Followed [lint naming conventions][lint_naming]
- [x] Added passing UI tests (including committed `.stderr` file)
- [x] `cargo test` passes locally
- [x] Executed `cargo dev update_lints`
- [x] Added lint documentation
- [x] Run `cargo dev fmt`
changelog: [`manual_empty_string_creations`]: Add lint for empty String not being created with `String::new()`
2022-08-19 11:19:06 +00:00
Samuel E. Moelius III
032f112745
Fix adjacent code
2022-08-16 18:34:51 -04:00
Guilherme-Vasconcelos
1bf8841479
Update all tests to comply with clippy::manual_empty_string_creations
2022-08-14 12:53:15 -03:00
Mark Rousskov
1a3192a331
Adjust cfgs
2022-08-12 16:28:15 -04:00
Philipp Krones
dc29cfb8d5
Merge commit '2b2190cb5667cdd276a24ef8b9f3692209c54a89' into clippyup
2022-08-11 19:42:16 +02:00
Philipp Krones
879855bbaf
Merge remote-tracking branch 'upstream/master' into rustup
2022-08-11 19:26:04 +02:00
Philipp Krones
67c405cc1d
Merge commit '3c7e7dbc1583a0b06df5bd7623dd354a4debd23d' into clippyup
2022-07-28 19:08:22 +02:00
Philipp Krones
0905ec465d
Merge remote-tracking branch 'upstream/master' into rustup
2022-07-28 18:55:32 +02:00
Serial
1ed7bff32c
Tell the user how to revert dev setup intellij
2022-07-28 03:40:21 -04:00
Serial
f31937043d
Implicitly set --type=cargo
when using --category=cargo
2022-07-26 19:32:34 -04:00
Serial
c8ee8c30f0
Give the user more information during creation
2022-07-26 19:18:10 -04:00
Serial
51cd5a8667
Add --type
flag to dev new_lint
2022-07-25 22:35:28 -04:00
Philipp Krones
7d4daaa8fa
Merge commit 'fdb84cbfd25908df5683f8f62388f663d9260e39' into clippyup
2022-07-18 09:39:37 +02:00
Caio
f88a1399bb
Stabilize let_chains
2022-07-16 20:17:58 -03:00
Josh Triplett
b7230d4f44
Dogfood fixes to use bool::then_some
2022-07-06 02:03:56 -07:00
bors
d4488a520a
Auto merge of #9039 - Serial-ATA:dev-dogfood, r=giraffate
...
Add `cargo dev dogfood`
changelog: Add `cargo dev dogfood`
Part of #5394
2022-07-01 01:07:25 +00:00
Philipp Krones
09f5df5087
Merge commit '0cb0f7636851f9fcc57085cf80197a2ef6db098f' into clippyup
2022-06-30 10:50:09 +02:00
Philipp Krones
f26cf11fe8
Merge remote-tracking branch 'upstream/master' into rustup
2022-06-30 10:27:25 +02:00
Jason Newcomb
5e2a2d3ac9
Fix dogfood
2022-06-28 13:02:08 -04:00