]> git.lizzy.rs Git - rust.git/commitdiff
Fix old call in lexer tests
authorJonathan Turner <jturner@mozilla.com>
Sun, 7 Aug 2016 14:50:27 +0000 (07:50 -0700)
committerJonathan Turner <jturner@mozilla.com>
Sun, 7 Aug 2016 14:50:27 +0000 (07:50 -0700)
src/libsyntax/parse/lexer/mod.rs

index 5ea1d6be9fec9903b3155b7faf60cafe2efe240d..9e9ea09646088bd2b2726eab8058939a45e6bc44 100644 (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))
     }