about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2018-04-25 10:33:02 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2018-04-26 16:22:18 +0200
commit1c09977c9a1aa344c52ddf44ebd42bacd876274b (patch)
tree1e0b4477b0f27f4eda32fd3165b43ccc46245e10
parent8f36804c00ca11ca9b4ed111dc4b4066b940508e (diff)
downloadrust-1c09977c9a1aa344c52ddf44ebd42bacd876274b.tar.gz
rust-1c09977c9a1aa344c52ddf44ebd42bacd876274b.zip
Mark SingleVariant as repr(u8) in c-style-enum
I should rather properly fix debuginfo but I have no clue how to do that.
-rw-r--r--src/test/debuginfo/c-style-enum.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/debuginfo/c-style-enum.rs b/src/test/debuginfo/c-style-enum.rs
index 1f1f42e2dec..2dbac8e3d9e 100644
--- a/src/test/debuginfo/c-style-enum.rs
+++ b/src/test/debuginfo/c-style-enum.rs
@@ -151,6 +151,7 @@ enum ManualDiscriminant {
 }
 
 #[derive(Copy, Clone)]
+#[repr(u8)]
 enum SingleVariant {
     TheOnlyVariant
 }