Skip to content

Commit 1f9c976

Browse files
committed
---
yaml --- r: 274272 b: refs/heads/stable c: d829019 h: refs/heads/master
1 parent dbce758 commit 1f9c976

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: c0221c8897db309a79990367476177b1230bb264
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 1745153eaeeb0793876b36422bda6764483ceefb
32+
refs/heads/stable: d829019ff4874e2a4f1b6780c442dfa524e75d38
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/src/libsyntax/errors/emitter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
use self::Destination::*;
1212

13-
use codemap::{self, COMMAND_LINE_SP, COMMAND_LINE_EXPN, Pos, Span};
13+
use codemap::{self, COMMAND_LINE_SP, COMMAND_LINE_EXPN, DUMMY_SP, Pos, Span};
1414
use diagnostics;
1515

1616
use errors::{Level, RenderSpan, DiagnosticBuilder};
@@ -109,8 +109,8 @@ impl Emitter for EmitterWriter {
109109
lvl: Level) {
110110
let error = match sp {
111111
Some(COMMAND_LINE_SP) => self.emit_(FileLine(COMMAND_LINE_SP), msg, code, lvl),
112+
Some(DUMMY_SP) | None => print_diagnostic(&mut self.dst, "", lvl, msg, code),
112113
Some(sp) => self.emit_(FullSpan(sp), msg, code, lvl),
113-
None => print_diagnostic(&mut self.dst, "", lvl, msg, code),
114114
};
115115

116116
if let Err(e) = error {

0 commit comments

Comments
 (0)