Skip to content

Commit 754037d

Browse files
committed
fix bad use of with_emitter
1 parent 7694ca1 commit 754037d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/test.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ fn run_test(test: &str, cratename: &str, filename: &FileName, line: usize,
272272
false);
273273

274274
// Compile the code
275-
let diagnostic_handler = errors::Handler::with_emitter(true, false, box emitter);
275+
let diagnostic_handler = errors::Handler::with_emitter(true, None, box emitter);
276276

277277
let mut sess = session::build_session_(
278278
sessopts, None, diagnostic_handler, source_map, Default::default(),
@@ -424,7 +424,7 @@ pub fn make_test(s: &str,
424424
// send all the errors that libsyntax emits directly into a `Sink` instead of stderr.
425425
let cm = Lrc::new(SourceMap::new(FilePathMapping::empty()));
426426
let emitter = EmitterWriter::new(box io::sink(), None, false, false);
427-
let handler = Handler::with_emitter(false, false, box emitter);
427+
let handler = Handler::with_emitter(false, None, box emitter);
428428
let sess = ParseSess::with_span_handler(handler, cm);
429429

430430
let mut found_main = false;

0 commit comments

Comments
 (0)