Skip to main content

diagnostics_enabled

Function diagnostics_enabled 

Source
pub fn diagnostics_enabled() -> bool
Expand description

Whether errors should be recorded as a Diagnostic instead of being printed and aborting the process. This is what keeps the CLI behavior byte-for-byte identical: without an active sink, every error path behaves exactly as before.