Philipp Krones
2da0edbdf1
Honor avoid-breaking-exported-api in needless_pass_by_ref_mut
...
Until now, the lint only emitted a warning, when breaking public API. Now it
doesn't lint at all when the config value is not set to `false`, bringing it in
line with the other lints using this config value.
Also ensures that this config value is documented in the lint.
2024-07-02 19:30:01 +02:00
xFrednet
3bbec6aade
sudo CI=green && Review changes <3
2024-06-25 18:06:22 +02:00
xFrednet
1b4c281fe7
RFC 2383: Stabilize lint_reasons in Clippy 🖇️
2024-06-25 17:50:48 +02:00
Trevor Gross
c693f31ee2
Update float tests to include f16 and f128
2024-06-19 13:30:21 -04:00
Philipp Krones
3bff119f63
Merge commit ' 3e5a02b13b' into clippy-subtree-update
2024-06-13 12:30:48 +02:00
Philipp Krones
4363278c73
Merge commit ' 2efebd2f0c' into clippy-subtree-update
2024-05-21 10:39:30 -07:00
Philipp Krones
80c6f8ff7b
Merge commit ' 20b085d500' into clippy-subtree-update
2024-05-02 17:26:44 +02:00
Gary Guo
7d9f970d4e
Fix and bless clippy tests
2024-04-24 13:12:33 +01:00
Philipp Krones
a5aaf33422
Merge commit ' ca3b393750' into clippy-subtree-update
2024-04-18 17:48:52 +02:00
Matthias Krüger
2e989dc280
Rollup merge of #123204 - notriddle:notriddle/include-str-span, r=pnkfelix
...
rustdoc: point at span in `include_str!`-ed md file
Fixes #118549
2024-04-12 17:41:32 +02:00
Philipp Krones
0ae4a048c6
Merge commit ' 9725c4a162' into clippy-subtree-update
2024-04-04 19:52:55 +02:00
Michael Howell
24e1071d21
clippy: fix up include_str! spans in diagnostics
2024-03-29 13:34:01 -07:00
bors
e5ece90f64
Auto merge of #119552 - krtab:dead_code_priv_mod_pub_field, r=cjgillot,saethlin
...
Replace visibility test with reachability test in dead code detection
Fixes https://github.com/rust-lang/rust/issues/119545
Also included is a fix for an error now flagged by the lint
2024-03-23 00:37:05 +00:00
Philipp Krones
0e62b18435
Merge commit ' 9d6f41691e' into clippy-subtree-update
2024-03-21 22:20:40 +01:00
Arthur Carcano
cbbb0ae7d2
fix: allow-one-hash-in-raw-strings option of needless_raw_string_hashes was ignored
...
Fixes: https://github.com/rust-lang/rust-clippy/issues/11481
changelog: Fix `allow-one-hash-in-raw-strings` option of [`needless_raw_string_hashes`] was ignored
2024-03-12 10:59:41 +01:00
Philipp Krones
7e83df4068
Merge commit ' 93f0a9a91f' into clippy-subtree-update
2024-03-07 17:19:29 +01:00
Philipp Krones
7be6e2178e
Merge commit ' 10136170fe' into clippy-subtree-update
2024-02-27 15:50:17 +01:00
bors
b8fb8907ba
Auto merge of #120393 - Urgau:rfc3373-non-local-defs, r=WaffleLapkin
...
Implement RFC 3373: Avoid non-local definitions in functions
This PR implements [RFC 3373: Avoid non-local definitions in functions](https://github.com/rust-lang/rust/issues/120363 ).
2024-02-25 19:11:06 +00:00
Oli Scherer
d136b05c1b
Always evaluate free constants and statics, even if previous errors occurred
2024-02-19 22:11:13 +00:00
Urgau
4d93edf346
Allow newly added non_local_definitions lint in clippy
2024-02-17 13:59:45 +01:00
Philipp Krones
f3b3d23416
Merge commit ' 60cb29c5e4' into clippyup
2024-02-08 20:24:42 +01:00
Philipp Krones
798865c593
Merge commit ' 66c29b973b' into clippy-subtree-update
2024-01-25 19:17:36 +01:00
Philipp Krones
aa220c7ee7
Merge commit ' 26ac6aab02'
2024-01-11 17:27:03 +01:00
Philipp Krones
15b1edb209
Merge commit ' ac4c2094a6' into clippy-subtree-sync
2023-12-28 19:33:07 +01:00
Philipp Krones
3596d44988
Merge commit ' a859e5cc1c' into clippyup
2023-12-16 14:12:50 +01:00
Philipp Krones
c9a43b18f1
Merge commit ' f0cdee4a3f' into clippy-subtree-sync
2023-12-01 18:21:58 +01:00
Nilstrieb
c2c73189c8
Bless clippy tests
...
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24 19:15:52 +01:00
Philipp Krones
8e7d1678c4
Merge commit ' 2b030eb03d' into clippyup
2023-10-21 14:16:11 +02:00
Michael Goulet
56794fa5f1
Fix clippy
2023-10-04 21:09:54 +00:00
Philipp Krones
772296c50e
Merge commit ' 7671c283a5' into clippyup
2023-09-25 11:28:58 +02:00
Camille GILLOT
19e160fe2f
Bless clippy.
2023-09-23 13:47:30 +00:00
Ralf Jung
3226e4b010
don't point at const usage site for resolution-time errors
...
also share the code that emits the actual error
2023-09-14 22:34:05 +02:00
Philipp Krones
471469d30f
Merge commit ' 98363cbf6a' into clippyup
2023-09-12 18:44:06 +02:00
Urgau
a86e758228
Adjust clippy tests with new rustc help suggestion for lints
2023-09-04 14:22:02 +02:00
Philipp Krones
cc61aeea54
Merge commit ' 080b587854' into clippyup
2023-08-24 21:32:12 +02:00
Philipp Krones
f730a2655a
Merge commit ' 1e8fdf4928' into clippyup
2023-08-11 14:05:13 +02:00
Philipp Krones
b0e64a9c09
Merge commit ' 5436dba826' into clippyup
2023-07-31 23:53:53 +02:00
Philipp Krones
d6d530fd0b
Merge commit ' d9c24d1b1e' into clippyup
2023-07-17 10:22:32 +02:00
Philipp Krones
cb3ecf7b79
Merge commit ' 37f4c1725d' into clippyup
2023-07-02 14:59:02 +02:00
Philipp Krones
e6dc0efc00
Merge commit ' 30448e8cf9' into clippyup
2023-06-02 11:41:57 +02:00
Philipp Krones
7e9abb311d
Merge commit ' 371120bdbf' into clippyup
2023-05-05 17:45:49 +02:00
Philipp Krones
a1b75c5108
Merge commit ' a3ed905928' into clippyup
2023-04-23 13:28:56 +02:00
Philipp Krones
6b95029f17
Merge commit ' 83e42a2337' into clippyup
2023-04-11 15:31:08 +02:00
Philipp Krones
8df896c076
Merge commit ' d5e2a7aca5' into clippyup
2023-03-24 14:26:19 +01:00
Pietro Albini
aff9b72375
move clippy tests back to their intended directory
2023-03-08 14:17:16 +01:00
Jason Newcomb
0413fb35ba
Merge commit ' 149392b0ba' into clippyup
2023-02-25 19:28:50 -05:00
Philipp Krones
d21616737b
Merge commit ' 7f27e2e74e' into clippyup
2023-01-12 19:48:13 +01:00
Philipp Krones
1c422524c7
Merge commit ' 4bdfb0741d' into clippyup
2022-12-17 14:12:54 +01:00
Philipp Krones
d05e2865a0
Merge commit ' d822110d3b' into clippyup
2022-12-01 18:29:38 +01:00
Philipp Krones
46c5a5d234
Merge commit ' f4850f7292' into clippyup
2022-11-21 20:51:52 +01:00