Toggle span highlighting on -Zteach

This commit is contained in:
Esteban Küber 2018-01-28 18:37:55 -08:00
parent 871856e831
commit 08287c1e26
8 changed files with 33 additions and 18 deletions

View file

@ -62,6 +62,7 @@ fn test_harness(file_text: &str, span_labels: Vec<SpanLabel>, expected_output: &
let emitter = EmitterWriter::new(Box::new(Shared { data: output.clone() }),
Some(code_map.clone()),
false,
false);
let handler = Handler::with_emitter(true, false, Box::new(emitter));
handler.span_err(msp, "foo");