Merge pull request #2074 from GuillaumeGomez/emitter

Update to last Emitter update
This commit is contained in:
Nick Cameron 2017-10-28 18:12:46 +13:00 committed by GitHub
commit 4022b094f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -521,6 +521,7 @@ pub fn format_input<T: Write>(
let silent_emitter = Box::new(EmitterWriter::new(
Box::new(Vec::new()),
Some(codemap.clone()),
false,
));
parse_session.span_diagnostic = Handler::with_emitter(true, false, silent_emitter);