warning: function 'reduce_11' is never used
maxrdz opened this issue · 2 comments
maxrdz commented
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 commented
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 commented
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.