Skip to content
Permalink
Browse files

Update more unit test to new API

  • Loading branch information...
oli-obk committed Mar 13, 2019
1 parent 0421c60 commit 0a842e8c7a18ac609c3c7c60563e8e6bc7d917c6
Showing with 2 additions and 0 deletions.
  1. +1 −0 src/libsyntax/parse/lexer/mod.rs
  2. +1 −0 src/libsyntax/test_snippet.rs
@@ -1926,6 +1926,7 @@ mod tests {
let emitter = errors::emitter::EmitterWriter::new(Box::new(io::sink()),
Some(sm.clone()),
false,
false,
false);
ParseSess {
span_diagnostic: errors::Handler::with_emitter(true, None, Box::new(emitter)),
@@ -57,6 +57,7 @@ fn test_harness(file_text: &str, span_labels: Vec<SpanLabel>, expected_output: &
let emitter = EmitterWriter::new(Box::new(Shared { data: output.clone() }),
Some(source_map.clone()),
false,
false,
false);
let handler = Handler::with_emitter(true, None, Box::new(emitter));
handler.span_err(msp, "foo");

0 comments on commit 0a842e8

Please sign in to comment.
You can’t perform that action at this time.