fn with_compilation_reporter_and_settings<O>( quiet: bool, project_root: Option<PathBuf>, print_compiler_settings: bool, f: impl FnOnce() -> O, ) -> O