Fix with_emitter callers
This commit is contained in:
parent
a7563a30c0
commit
bc9b936290
3 changed files with 3 additions and 3 deletions
|
|
@ -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'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue