Alex Macleod
9e5523e8c4
lint_groups_priority: ignore lints & groups at the same level
2024-05-20 19:44:55 +00:00
bors
2b34abc887
Auto merge of #12730 - Alexendoo:lint-groups-workspace-priority, r=xFrednet
...
Lint direct priority conflicts in `[workspace.lints]`
Partially addresses #12729
This still doesn't do any workspace resolution stuff, so it will not catch any virtual workspaces or conflicts from inherited definitions. But while we're parsing the `Cargo.toml` we might as well check the workspace definitions if we find them
changelog: none
2024-05-12 13:45:47 +00:00
xFrednet
b1fa2842b1
Update version attribute for 1.78 lints
2024-04-29 21:26:14 +02:00
Alex Macleod
fa8f4b88cb
Lint direct priority conflicts in [lints.workspace]
2024-04-28 14:16:19 +00:00
y21
91f514cc83
fix fallout from previous commit
2024-04-01 15:04:45 +02:00
Alex Macleod
6619e8c27d
Add lint_groups_priority
lint
...
Warns when a lint group in Cargo.toml's `[lints]` section shares the
same priority as a lint
2024-01-31 18:33:41 +00:00
y21
95a084f2eb
[multiple_crate_versions
]: add a configuration option for allowed duplicate dependencies
2024-01-21 03:23:41 +01:00
Kristof Mattei
e8ec99811b
fix: crates are limited to ASCII values
2024-01-14 14:00:13 -07:00
Kristof Mattei
ea585ef321
chore: remove unneeded into_iter
2024-01-14 09:40:14 -07:00
Kristof Mattei
b1c52d502d
chore: add comments to explain reasoning
2024-01-14 09:32:36 -07:00
Kristof Mattei
5d06fbb46d
fix: don't allocate new string when not needed
2024-01-14 09:25:31 -07:00
Kristof Mattei
d975e267b9
fix: add fix for bug, fix test name
2024-01-13 17:44:27 -07:00
Alex Macleod
7093444bfa
Use absolute path for declare_tool_lint
in declare_clippy_lint
2023-11-25 17:45:27 +00:00
Philipp Krones
6fab1485c3
Merge remote-tracking branch 'upstream/master' into rustup
2023-11-16 19:02:04 +01:00
Alex Macleod
13b4bb12ad
Clean up after if chain removal
2023-11-10 18:03:13 +00:00
Alex Macleod
9681b4afe0
Run if-to-let-chain clippy*/**/*.rs
...
https://github.com/Alexendoo/if-to-let-chain
2023-11-10 17:29:28 +00:00
Nicholas Nethercote
e1ec2d5cc9
Minimize pub
usage in source_map.rs
.
...
Most notably, this commit changes the `pub use crate::*;` in that file
to `use crate::*;`. This requires a lot of `use` items in other crates
to be adjusted, because everything defined within `rustc_span::*` was
also available via `rustc_span::source_map::*`, which is bizarre.
The commit also removes `SourceMap::span_to_relative_line_string`, which
is unused.
2023-11-02 19:35:00 +11:00
Philipp Krones
d75b25faab
Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup
2022-10-06 09:44:38 +02:00
Yuri Astrakhan
e67b2bf732
Apply uninlined_format-args to clippy_lints
...
This change is needed for the uninlined_format-args lint to be merged.
See https://github.com/rust-lang/rust-clippy/pull/9233
2022-09-23 13:42:59 -04:00
Philipp Krones
67c405cc1d
Merge commit '3c7e7dbc1583a0b06df5bd7623dd354a4debd23d' into clippyup
2022-07-28 19:08:22 +02:00
Serial
51cd5a8667
Add --type
flag to dev new_lint
2022-07-25 22:35:28 -04:00
flip1995
35020280a0
Merge commit 'e329249b6a3a98830d860c74c8234a8dd9407436' into clippyup
2022-02-26 14:26:21 +01:00
Jason Newcomb
eed7e9f618
Merge cargo lints
2022-02-13 17:36:33 -05:00