about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp
diff options
context:
space:
mode:
authorAlex Macleod <alex@macleod.io>2024-12-16 02:17:59 +0000
committerGitHub <noreply@github.com>2024-12-16 02:17:59 +0000
commit8da8da8428fcdff68d78e532b09e1b695a9de746 (patch)
tree6aef59d8549a9400013048264ed7e19b0086a1a1 /compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp
parent60dbda209e9f3bf416f1dc4cd99d0d866f94b309 (diff)
parent7a80f7b790333aed3b456db01d6c3dd26c69d487 (diff)
downloadrust-8da8da8428fcdff68d78e532b09e1b695a9de746.tar.gz
rust-8da8da8428fcdff68d78e532b09e1b695a9de746.zip
Initial impl of `repr_packed_without_abi` (#13398)
Fixes #13375

I've added the lint next to the other attribute-related ones. Not sure
if this is the correct place, since while we are looking after the
`packed`-attribute (there is nothing we can do about types defined
elsewhere), we are more concerned about the type's representation set by
the attribute (instead of "duplicate attributes" and such).

The lint simply looks at the attributes themselves without concern for
the item-kind, since items where `repr` is not allowed end up in a
compile-error anyway.

I'm somewhat concerned about the level of noise this lint would cause
if/when it goes into stable, although it does _not_ come up in
`lintcheck`.

```
changelog: [`repr_packed_without_abi`]: Initial implementation
```
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp')
0 files changed, 0 insertions, 0 deletions