Skip to content

Commit

Permalink
Fix old call in lexer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Turner committed Aug 7, 2016
1 parent fad4f32 commit c350ec7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/libsyntax/parse/lexer/mod.rs
Expand Up @@ -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))
}

Expand Down

0 comments on commit c350ec7

Please sign in to comment.