fix bad use of with_emitter
This commit is contained in:
parent
7694ca1105
commit
754037de13
1 changed files with 2 additions and 2 deletions
|
@ -272,7 +272,7 @@ fn run_test(test: &str, cratename: &str, filename: &FileName, line: usize,
|
||||||
false);
|
false);
|
||||||
|
|
||||||
// Compile the code
|
// Compile the code
|
||||||
let diagnostic_handler = errors::Handler::with_emitter(true, false, box emitter);
|
let diagnostic_handler = errors::Handler::with_emitter(true, None, box emitter);
|
||||||
|
|
||||||
let mut sess = session::build_session_(
|
let mut sess = session::build_session_(
|
||||||
sessopts, None, diagnostic_handler, source_map, Default::default(),
|
sessopts, None, diagnostic_handler, source_map, Default::default(),
|
||||||
|
@ -424,7 +424,7 @@ pub fn make_test(s: &str,
|
||||||
// send all the errors that libsyntax emits directly into a `Sink` instead of stderr.
|
// send all the errors that libsyntax emits directly into a `Sink` instead of stderr.
|
||||||
let cm = Lrc::new(SourceMap::new(FilePathMapping::empty()));
|
let cm = Lrc::new(SourceMap::new(FilePathMapping::empty()));
|
||||||
let emitter = EmitterWriter::new(box io::sink(), None, false, false);
|
let emitter = EmitterWriter::new(box io::sink(), None, false, false);
|
||||||
let handler = Handler::with_emitter(false, false, box emitter);
|
let handler = Handler::with_emitter(false, None, box emitter);
|
||||||
let sess = ParseSess::with_span_handler(handler, cm);
|
let sess = ParseSess::with_span_handler(handler, cm);
|
||||||
|
|
||||||
let mut found_main = false;
|
let mut found_main = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue