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

Adding #[num_enum(catch_all)] to an enum variant removes the enum's display name while debugging #132

Open
Sharpiro opened this issue Sep 29, 2023 · 0 comments

Comments

@Sharpiro
Copy link

Adding #[num_enum(catch_all)] to an enum variant removes the enum's display name while debugging.

When a known enum variant occurs, instead of the name, {...} is shown signifying debug information is unavailable. It also cannot be expanded for more information and won't even show the underlying number.

When the catch_all varaint occurs it shows {0:99} which is fine since my enum is a #[repr(u16)].

rustc 1.72.0 (5680fa18f 2023-08-23)
os: win and linux tested
debugger: windbg and lldb tested

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

1 participant