Implement -Ztrack-diagnostics

This commit is contained in:
mejrs 2022-10-19 00:08:20 +02:00
parent 4f50e6f41e
commit 831b99436c
2 changed files with 2 additions and 0 deletions

View File

@ -691,6 +691,7 @@ fn has_needless_main(code: String, edition: Edition) -> bool {
false,
None,
false,
false,
);
let handler = Handler::with_emitter(false, None, Box::new(emitter));
let sess = ParseSess::with_span_handler(handler, sm);

View File

@ -179,6 +179,7 @@ fn report_clippy_ice(info: &panic::PanicInfo<'_>, bug_report_url: &str) {
false,
None,
false,
false,
));
let handler = rustc_errors::Handler::with_emitter(true, None, emitter);