Skip to content

Commit

Permalink
Merge pull request #2074 from GuillaumeGomez/emitter
Browse files Browse the repository at this point in the history
Update to last Emitter update
  • Loading branch information
nrc authored Oct 28, 2017
2 parents ef68ea1 + e35e276 commit 4022b09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 4022b09

Please sign in to comment.