Update more unit test to new API

This commit is contained in:
Oliver Scherer
2019-03-13 14:06:25 +01:00
parent 0421c6049b
commit 0a842e8c7a
2 changed files with 2 additions and 0 deletions

View File

@@ -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");