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

@ -239,6 +239,7 @@ fn run_test(test: &str, cratename: &str, filename: &FileName, line: usize,
));
let emitter = errors::emitter::EmitterWriter::new(box Sink(data.clone()),
Some(codemap.clone()),
false,
false);
let old = io::set_panic(Some(box Sink(data.clone())));
let _bomb = Bomb(data.clone(), old.unwrap_or(box io::stdout()));