Toggle span highlighting on -Zteach
This commit is contained in:
parent
871856e831
commit
08287c1e26
8 changed files with 33 additions and 18 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue