rust-clippy/tests
bors 1c81105b43 Auto merge of #13211 - rzvxa:respect_allow_inconsistent_struct_constructor_on_adt, r=Alexendoo
Respect allow `inconsistent_struct_constructor` on the struct definition

Closes #13203

Now we check if the target type is marked with `#[allow(clippy:inconsistent_struct_constructor)]` before lining.
As a side-effect of this change, The rule in the subject no longer runs on non-local `AdtDef`s. However, as suggested by `@Jarcho` it shouldn't be a big deal since most of the time we didn't have access to this information anyway.

> You can't get lint attributes from other crates. I would probably just restrict the lint to only work with types from the current crate while you're at it. Upstream crates don't have a definition order from the point of view of the current crate (with the exception of #[repr(C)] structs).

changelog: Respect allow `inconsistent_struct_constructor` on the struct definition.
2024-08-09 12:23:53 +00:00
..
test_utils
ui Auto merge of #13211 - rzvxa:respect_allow_inconsistent_struct_constructor_on_adt, r=Alexendoo 2024-08-09 12:23:53 +00:00
ui-cargo Merge commit '68a799aea9b65e2444fbecfe32217ce7d5a3604f' into clippy-subtree-update 2024-06-27 18:56:04 +02:00
ui-internal Store deprecated lints as an array of tuples. 2024-08-05 09:15:55 -04:00
ui-toml Handle or patterns in single_match and single_match_else 2024-08-07 11:40:15 -04:00
workspace_test Use -D warnings instead of deny-warnings feature. 2024-08-06 10:46:39 -04:00
check-fmt.rs Use -D warnings instead of deny-warnings feature. 2024-08-06 10:46:39 -04:00
clippy.toml
compile-test.rs Merge remote-tracking branch 'upstream/master' into rustup 2024-08-08 18:54:43 +02:00
dogfood.rs Use -D warnings instead of deny-warnings feature. 2024-08-06 10:46:39 -04:00
headers.rs Merge commit 'a859e5cc1ce100df22346a1005da30532d04de59' into clippyup 2023-12-16 14:12:50 +01:00
integration.rs Use -D warnings instead of deny-warnings feature. 2024-08-06 10:46:39 -04:00
lint_message_convention.rs Use -D warnings instead of deny-warnings feature. 2024-08-06 10:46:39 -04:00
missing-test-files.rs Use -D warnings instead of deny-warnings feature. 2024-08-06 10:46:39 -04:00
versioncheck.rs Use -D warnings instead of deny-warnings feature. 2024-08-06 10:46:39 -04:00
workspace.rs Stabilize LazyCell and LazyLock (lazy_cell) 2024-02-20 20:55:13 -07:00