Skip to content
Permalink
Browse files

Fix with_emitter callers

  • Loading branch information...
estebank committed Mar 7, 2019
1 parent a7563a3 commit bc9b93629051979cec6fd078511954388bd4e9f9
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/librustc_driver/test.rs
  2. +1 −1 src/libsyntax/parse/lexer/mod.rs
  3. +1 −1 src/libsyntax/test_snippet.rs
@@ -113,7 +113,7 @@ fn test_env_with_pool<F>(
) where
F: FnOnce(Env),
{
let diagnostic_handler = errors::Handler::with_emitter(true, false, emitter);
let diagnostic_handler = errors::Handler::with_emitter(true, None, emitter);
let sess = session::build_session_(
options,
None,
@@ -1920,7 +1920,7 @@ mod tests {
false,
false);
ParseSess {
span_diagnostic: errors::Handler::with_emitter(true, false, Box::new(emitter)),
span_diagnostic: errors::Handler::with_emitter(true, None, Box::new(emitter)),
unstable_features: UnstableFeatures::from_environment(),
config: CrateConfig::default(),
included_mod_stack: Lock::new(Vec::new()),
@@ -58,7 +58,7 @@ fn test_harness(file_text: &str, span_labels: Vec<SpanLabel>, expected_output: &
Some(source_map.clone()),
false,
false);
let handler = Handler::with_emitter(true, false, Box::new(emitter));
let handler = Handler::with_emitter(true, None, Box::new(emitter));
handler.span_err(msp, "foo");

assert!(expected_output.chars().next() == Some('\n'),

0 comments on commit bc9b936

Please sign in to comment.
You can’t perform that action at this time.