about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-08-09 12:23:53 +0000
committerbors <bors@rust-lang.org>2024-08-09 12:23:53 +0000
commit1c81105b432d5b2ae111c78ff6fba00b28e32309 (patch)
tree58d9cbb4a963bb5400f372cada6a187bff39afd1 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentcb806113e0f83a8f9b47d35b453b676543bcc40e (diff)
parentd85cf0bacd8ea565557317940d878a535189a6d9 (diff)
downloadrust-1c81105b432d5b2ae111c78ff6fba00b28e32309.tar.gz
rust-1c81105b432d5b2ae111c78ff6fba00b28e32309.zip
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions