pub fn with_compilation_reporter<O>( quiet: bool, project_root: Option<PathBuf>, f: impl FnOnce() -> O, ) -> O
Configures the reporter and runs the given closure.