This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
rust
/
src
/
test
/
ui
/
issues
/
issue-47094.rs
17 lines
123 B
Rust
Raw
Normal View
History
Unescape
Escape
Rename must-compile-successfully into compile-pass
2018-04-02 13:20:06 +02:00
// compile-pass
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.
2018-01-01 21:42:12 +01:00
#[
repr(C,u8)
]
enum
Foo
{
A
,
B
,
}
#[
repr(C)
]
#[
repr(u8)
]
enum
Bar
{
A
,
B
,
}
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink