Skip to content

Commit

Permalink
Fix zero-size struct improper_ctypes warnings.
Browse files Browse the repository at this point in the history
These warnings starting appearing from rust-lang/rust#26583.
  • Loading branch information
SSheldon committed Sep 20, 2015
1 parent bfceec1 commit dfa8b48
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ pub struct Sel {

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

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

0 comments on commit dfa8b48

Please sign in to comment.