Skip to content

Commit

Permalink
Update more unit test to new API
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Apr 2, 2019
1 parent 0421c60 commit 0a842e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/libsyntax/parse/lexer/mod.rs
Expand Up @@ -1926,6 +1926,7 @@ mod tests {
let emitter = errors::emitter::EmitterWriter::new(Box::new(io::sink()), let emitter = errors::emitter::EmitterWriter::new(Box::new(io::sink()),
Some(sm.clone()), Some(sm.clone()),
false, false,
false,
false); false);
ParseSess { ParseSess {
span_diagnostic: errors::Handler::with_emitter(true, None, Box::new(emitter)), span_diagnostic: errors::Handler::with_emitter(true, None, Box::new(emitter)),
Expand Down
1 change: 1 addition & 0 deletions src/libsyntax/test_snippet.rs
Expand Up @@ -57,6 +57,7 @@ fn test_harness(file_text: &str, span_labels: Vec<SpanLabel>, expected_output: &
let emitter = EmitterWriter::new(Box::new(Shared { data: output.clone() }), let emitter = EmitterWriter::new(Box::new(Shared { data: output.clone() }),
Some(source_map.clone()), Some(source_map.clone()),
false, false,
false,
false); false);
let handler = Handler::with_emitter(true, None, Box::new(emitter)); let handler = Handler::with_emitter(true, None, Box::new(emitter));
handler.span_err(msp, "foo"); handler.span_err(msp, "foo");
Expand Down

0 comments on commit 0a842e8

Please sign in to comment.