summary refs log tree commit diff
path: root/src/libsyntax/parse/lexer
diff options
context:
space:
mode:
authorJonathan Turner <jturner@mozilla.com>2016-07-05 15:24:23 -0400
committerJonathan Turner <jturner@mozilla.com>2016-07-14 07:57:46 -0400
commit8f044fae36b73ec4593c127ec2a7c28716208591 (patch)
tree926f262cc1c7f8e64d2f9fe858480ea21c7f28b7 /src/libsyntax/parse/lexer
parent3c85f414e922b7bf427493211601c0c7bde3a286 (diff)
downloadrust-8f044fae36b73ec4593c127ec2a7c28716208591.tar.gz
rust-8f044fae36b73ec4593c127ec2a7c28716208591.zip
Remove BasicEmitter
Diffstat (limited to 'src/libsyntax/parse/lexer')
-rw-r--r--src/libsyntax/parse/lexer/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/lexer/mod.rs b/src/libsyntax/parse/lexer/mod.rs
index 77b5c10899a..5ea1d6be9fe 100644
--- a/src/libsyntax/parse/lexer/mod.rs
+++ b/src/libsyntax/parse/lexer/mod.rs
@@ -1686,7 +1686,7 @@ mod tests {
         // FIXME (#22405): Replace `Box::new` with `box` here when/if possible.
         let emitter = errors::emitter::EmitterWriter::new(Box::new(io::sink()),
                                                 None,
-                                                cm,
+                                                Some(cm),
                                                 errors::snippet::FormatMode::EnvironmentSelected);
         errors::Handler::with_emitter(true, false, Box::new(emitter))
     }