5833e4d26e
Extract diagnostics module and document some functions This moves the lint building functions from `utils/mod.rs` to their own `utils/diagnostics.rs` file. Also adds documentation for three of them.