tidy 😡

This commit is contained in:
Alex Burka 2017-11-20 01:23:44 +00:00
parent 28f9ffbca1
commit 30a661409c
2 changed files with 5 additions and 2 deletions

View File

@ -141,7 +141,8 @@ pub fn run<F>(run_compiler: F) -> isize
errors::emitter::EmitterWriter::stderr(errors::ColorConfig::Auto,
None,
true);
let handler = errors::Handler::with_emitter(true, false, false, Box::new(emitter));
let handler = errors::Handler::with_emitter(true, false, false,
Box::new(emitter));
handler.emit(&MultiSpan::new(),
"aborting due to previous error(s)",
errors::Level::Fatal);

View File

@ -81,7 +81,9 @@ pub fn run(input: &str,
let codemap = Rc::new(CodeMap::new(sessopts.file_path_mapping()));
let handler =
errors::Handler::with_tty_emitter(ColorConfig::Auto, true, false, false, Some(codemap.clone()));
errors::Handler::with_tty_emitter(ColorConfig::Auto,
true, false, false,
Some(codemap.clone()));
let cstore = Rc::new(CStore::new(box rustc_trans::LlvmMetadataLoader));
let mut sess = session::build_session_(