Skip to main content

with_compilation_reporter

Function with_compilation_reporter 

Source
pub fn with_compilation_reporter<O>(
    quiet: bool,
    project_root: Option<PathBuf>,
    f: impl FnOnce() -> O,
) -> O
Expand description

Configures the reporter and runs the given closure.

In TTY mode, SpinnerReporter paints the progress to stderr. The non-TTY fallback still writes to stdout via BasicStdoutReporter; migrating that path to stderr is part of the per-command stdout migration tracked in docs/dev/output-channels.md (it would shift many existing snapshot tests at once).