diff options
| author | Robin Kruppe <robin.kruppe@gmail.com> | 2018-01-01 21:42:12 +0100 |
|---|---|---|
| committer | Robin Kruppe <robin.kruppe@gmail.com> | 2018-01-01 22:05:29 +0100 |
| commit | 03936115eff4c1aa2be1ceeea87238ec7c822d90 (patch) | |
| tree | 9282db8809c7cc7d86fc75d63e6fd1941b15e9ca /src/rustllvm/RustWrapper.cpp | |
| parent | 00fbfcce961c9e2acb82473234140a376e093a7a (diff) | |
| download | rust-03936115eff4c1aa2be1ceeea87238ec7c822d90.tar.gz rust-03936115eff4c1aa2be1ceeea87238ec7c822d90.zip | |
Check all repr hints together when checking for mis-applied attributes
Fixes #47094 Besides fixing that bug, this change has a user-visible effect on the spans in the "incompatible repr hints" warning and another error: they now point at `foo` and/or `bar` in `repr(foo, bar)` instead of the whole attribute. This is sometimes more precise (e.g., `#[repr(C, packed)]` on an enum points at the `packed`) but sometimes not. I moved a compile-fail test to a ui test to illustrate how it now looks in the common case of only one attribute.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
