You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As it stands any typedefs of that form which are not generic will be put into the header, this should cover most use cases but it's not impossible for people to do something like
pubtypeMyResult = Result<String,()>;
which would put
typedefResult<String, ()>MyResult;
into the header file.
The two obvious ways to combat this are using #[repr(C)] (which rustc seems to be fine with) or adding a lint group and using #[allow(cheddar_typedef)] (I'm not sure whether this would actually work).
The text was updated successfully, but these errors were encountered:
As it stands any typedefs of that form which are not generic will be put into the header, this should cover most use cases but it's not impossible for people to do something like
which would put
into the header file.
The two obvious ways to combat this are using
#[repr(C)]
(whichrustc
seems to be fine with) or adding a lint group and using#[allow(cheddar_typedef)]
(I'm not sure whether this would actually work).The text was updated successfully, but these errors were encountered: