Function rustdoc::core::new_handler [−][src]
pub(crate) fn new_handler(
error_format: ErrorOutputType,
source_map: Option<Lrc<SourceMap>>,
debugging_opts: &DebuggingOptions
) -> HandlerExpand description
Creates a new diagnostic Handler that can be used to emit warnings and errors.
If the given error_format is ErrorOutputType::Json and no SourceMap is given, a new one
will be created for the handler.