Remove BasicEmitter

This commit is contained in:
Jonathan Turner 2016-07-05 15:24:23 -04:00
parent 3c85f414e9
commit 8f044fae36
9 changed files with 99 additions and 87 deletions

View file

@ -50,7 +50,11 @@ pub struct ParseSess {
impl ParseSess {
pub fn new() -> ParseSess {
let cm = Rc::new(CodeMap::new());
let handler = Handler::with_tty_emitter(ColorConfig::Auto, None, true, false, cm.clone());
let handler = Handler::with_tty_emitter(ColorConfig::Auto,
None,
true,
false,
Some(cm.clone()));
ParseSess::with_span_handler(handler, cm)
}