Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rust does not provide default Debug/Eq/PartialEq traits for arrays having sizes greater then 32 #1

Open
madebr opened this issue Jan 25, 2018 · 2 comments
Assignees

Comments

@madebr
Copy link

madebr commented Jan 25, 2018

This code fails.

#[macro_use] extern crate plain_enum;
plain_enum_mod!{number_mod, Numbers {
    N00,    N01,    N02,    N03,    N04,    N05,    N06,    N07,    N08,    N09,
    N10,    N11,    N12,    N13,    N14,    N15,    N16,    N17,    N18,    N19,
    N20,    N21,    N22,    N23,    N24,    N25,    N26,    N27,    N28,    N29,
    N30,    N31,    N32,
}}

I believe this line is the offender.

@phimuemue
Copy link
Owner

phimuemue commented Jan 25, 2018

I agree that this is unfortunate. However, I am not sure whether we should workaround this within plain_enum. I would assume that Rust will address this issue (see here or here), so I am tempted to live with the restriction in plain_enum for now, hoping that the problem will disappear.

Do you think there is an easy alternative that we could implement?

@phimuemue phimuemue self-assigned this Jan 27, 2018
@KamilaBorowska
Copy link

I think it may be fixed by now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants