Skip to content

Commit dfa8b48

Browse files
committedSep 20, 2015
Fix zero-size struct improper_ctypes warnings.
These warnings starting appearing from rust-lang/rust#26583.
1 parent bfceec1 commit dfa8b48

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/runtime.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ pub struct Sel {
4040

4141
/// A marker type to be embedded into other types just so that they cannot be
4242
/// constructed externally.
43-
#[repr(C)]
44-
struct PrivateMarker;
43+
enum PrivateMarker { }
4544

4645
/// A type that represents an instance variable.
4746
#[repr(C)]

0 commit comments

Comments
 (0)
Please sign in to comment.