diff options
| author | bors <bors@rust-lang.org> | 2018-01-31 07:53:57 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-01-31 07:53:57 +0000 |
| commit | 560a2f4faf4828ba5f48fe2bd7709265c2f5354d (patch) | |
| tree | 14d4693f6908a4f3f7ece6cf63c00cff4d540a9b /src/libsyntax/parse | |
| parent | b8f2674ea47f4f3cf5d90d0428bf8b8025d7f8d8 (diff) | |
| parent | 08287c1e26c6faa18c145a8a794fdd25408217a4 (diff) | |
| download | rust-560a2f4faf4828ba5f48fe2bd7709265c2f5354d.tar.gz rust-560a2f4faf4828ba5f48fe2bd7709265c2f5354d.zip | |
Auto merge of #45752 - estebank:highlight-primary, r=nikomatsakis
Highlight code on diagnostics when underlined Highlight the label's span with the respective color: <img width="692" alt="" src="https://user-images.githubusercontent.com/1606434/32411026-a1842482-c18d-11e7-9933-6510eefbad19.png"> Fix #42112.
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/lexer/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/parse/lexer/mod.rs b/src/libsyntax/parse/lexer/mod.rs index b95c91548d0..0fd069b76aa 100644 --- a/src/libsyntax/parse/lexer/mod.rs +++ b/src/libsyntax/parse/lexer/mod.rs @@ -1745,6 +1745,7 @@ mod tests { fn mk_sess(cm: Rc<CodeMap>) -> ParseSess { let emitter = errors::emitter::EmitterWriter::new(Box::new(io::sink()), Some(cm.clone()), + false, false); ParseSess { span_diagnostic: errors::Handler::with_emitter(true, false, Box::new(emitter)), |
