Skip to content

Deriving Display on never gives a warning #400

Closed
@ndmitchell

Description

I have a type:

#[derive(Display)]
pub struct NoHash(!);

When I moved from derive_more 0.99.17 to 1.0.0 this went from not showing any warnings, to showing a warning about having dead code. I think this is because warnings are now turned on for generated derive_more code (which is great), but you might want to special case the never type in some way, or turn off dead_code because never produces it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions