Move a bunch of stuff from Session to syntax::errors

The intention here is that Session is a very thin wrapper over the error handling infra.
This commit is contained in:
Nick Cameron 2015-12-14 18:15:39 +13:00
parent 6309b0f5bb
commit a478811822
5 changed files with 19 additions and 68 deletions

View file

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