Skip to content

Commit 165cb86

Browse files
noxXandkeeper
authored andcommitted
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 2ebda12 commit 165cb86

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)