diff options
| author | bors <bors@rust-lang.org> | 2018-01-02 08:34:27 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-01-02 08:34:27 +0000 |
| commit | 5873a74d8f8bceeb15a689a8fd6bd1f22c42b6ba (patch) | |
| tree | 222d278a109ca698e963150c4342059072dc7c64 /src/rustllvm/RustWrapper.cpp | |
| parent | b9cf26c38acf60fb1d7d88d914a22824b82ed829 (diff) | |
| parent | 03936115eff4c1aa2be1ceeea87238ec7c822d90 (diff) | |
| download | rust-5873a74d8f8bceeb15a689a8fd6bd1f22c42b6ba.tar.gz rust-5873a74d8f8bceeb15a689a8fd6bd1f22c42b6ba.zip | |
Auto merge of #47111 - rkruppe:repr-transparent, r=estebank
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
