about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorRobin Kruppe <robin.kruppe@gmail.com>2018-01-01 21:42:12 +0100
committerRobin Kruppe <robin.kruppe@gmail.com>2018-01-01 22:05:29 +0100
commit03936115eff4c1aa2be1ceeea87238ec7c822d90 (patch)
tree9282db8809c7cc7d86fc75d63e6fd1941b15e9ca /src/rustllvm/RustWrapper.cpp
parent00fbfcce961c9e2acb82473234140a376e093a7a (diff)
downloadrust-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