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:
parent
6309b0f5bb
commit
a478811822
5 changed files with 19 additions and 68 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue