Skip to content

Commit

Permalink
Fix with_emitter callers
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Mar 7, 2019
1 parent a7563a3 commit bc9b936
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/librustc_driver/test.rs
Expand Up @@ -113,7 +113,7 @@ fn test_env_with_pool<F>(
) where ) where
F: FnOnce(Env), 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_( let sess = session::build_session_(
options, options,
None, None,
Expand Down
2 changes: 1 addition & 1 deletion src/libsyntax/parse/lexer/mod.rs
Expand Up @@ -1920,7 +1920,7 @@ mod tests {
false, false,
false); false);
ParseSess { 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(), unstable_features: UnstableFeatures::from_environment(),
config: CrateConfig::default(), config: CrateConfig::default(),
included_mod_stack: Lock::new(Vec::new()), included_mod_stack: Lock::new(Vec::new()),
Expand Down
2 changes: 1 addition & 1 deletion src/libsyntax/test_snippet.rs
Expand Up @@ -58,7 +58,7 @@ fn test_harness(file_text: &str, span_labels: Vec<SpanLabel>, expected_output: &
Some(source_map.clone()), Some(source_map.clone()),
false, false,
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"); handler.span_err(msp, "foo");


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

0 comments on commit bc9b936

Please sign in to comment.