Fix old call in lexer tests

This commit is contained in:
Jonathan Turner 2016-08-07 07:50:27 -07:00
parent fad4f32c31
commit c350ec7bb3

View File

@ -1685,9 +1685,7 @@ mod tests {
fn mk_sh(cm: Rc<CodeMap>) -> errors::Handler {
// FIXME (#22405): Replace `Box::new` with `box` here when/if possible.
let emitter = errors::emitter::EmitterWriter::new(Box::new(io::sink()),
None,
Some(cm),
errors::snippet::FormatMode::EnvironmentSelected);
Some(cm));
errors::Handler::with_emitter(true, false, Box::new(emitter))
}