Skip to content

Commit 0a842e8

Browse files
committed
Update more unit test to new API
1 parent 0421c60 commit 0a842e8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/libsyntax/parse/lexer/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1926,6 +1926,7 @@ mod tests {
19261926
let emitter = errors::emitter::EmitterWriter::new(Box::new(io::sink()),
19271927
Some(sm.clone()),
19281928
false,
1929+
false,
19291930
false);
19301931
ParseSess {
19311932
span_diagnostic: errors::Handler::with_emitter(true, None, Box::new(emitter)),

src/libsyntax/test_snippet.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ fn test_harness(file_text: &str, span_labels: Vec<SpanLabel>, expected_output: &
5757
let emitter = EmitterWriter::new(Box::new(Shared { data: output.clone() }),
5858
Some(source_map.clone()),
5959
false,
60+
false,
6061
false);
6162
let handler = Handler::with_emitter(true, None, Box::new(emitter));
6263
handler.span_err(msp, "foo");

0 commit comments

Comments
 (0)