oli-obk / ui_test

A test framework for testing rustc diagnostics output
27 stars 25 forks source link

Export parser types #286

Closed DaniPopes closed 1 month ago

DaniPopes commented 1 month ago

CommentParser is unnameable from outside this crate, meaning a user cannot declare a parser function with fn, only inline with a closure. I've fixed this by exporting parser::*, and enabled the unreachable_pub and unnameable_types to catch this and other unreachable types.

oli-obk commented 1 month ago

Thanks! That lint is so helpful