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

warning: function 'reduce_11' is never used #52

Open
maxrdz opened this issue Sep 28, 2023 · 2 comments
Open

warning: function 'reduce_11' is never used #52

maxrdz opened this issue Sep 28, 2023 · 2 comments

Comments

@maxrdz
Copy link

maxrdz commented Sep 28, 2023

A certain production rule in my parser definition causes the whole parser definition to be marked under the "function 'reduce_11' is never used" rustc warning. Build code from this point in my project's git history to reproduce: 8fc9de55efef7ab242d38f29b0020880dbd8f8de. Parser source is at src/dcparser.rs

@maxrdz
Copy link
Author

maxrdz commented Sep 28, 2023

I started writing some unit testing on my parser file and the warning does not show anymore, but I'll keep the issue open as it looks like a quirky bug to me.

@goffrie
Copy link
Owner

goffrie commented Sep 28, 2023

I'll try to take a look at your case later but I believe this indicates that there's some redundancy in your grammar, so I'd consider this more of a diagnostics bug. Probably we should emit an error instead.

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

2 participants