Skip to content

Commit 1c09977

Browse files
committed
Mark SingleVariant as repr(u8) in c-style-enum
I should rather properly fix debuginfo but I have no clue how to do that.
1 parent 8f36804 commit 1c09977

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/debuginfo/c-style-enum.rs

+1
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ enum ManualDiscriminant {
151151
}
152152

153153
#[derive(Copy, Clone)]
154+
#[repr(u8)]
154155
enum SingleVariant {
155156
TheOnlyVariant
156157
}

0 commit comments

Comments
 (0)