diff options
| author | bors <bors@rust-lang.org> | 2018-01-17 18:38:34 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-01-17 18:38:34 +0000 |
| commit | 0f9c784751434c70ddd6719ccda6817c819126f9 (patch) | |
| tree | 7c0645a6d63a20eeb7c2c3f2a0f81405f30b7b92 /src/librustc_errors | |
| parent | 3e49ada7528bf664b2ccc8516a9ef7d21849a70b (diff) | |
| parent | 5fade39c8811c04efd4e4b3783f8587a1cca9700 (diff) | |
Auto merge of #47522 - kennytm:rollup, r=kennytm
Rollup of 21 pull requests - Successful merges: #47302, #47333, #47387, #47404, #47407, #47426, #47427, #47436, #47444, #47456, #47458, #47467, #47479, #47481, #47483, #47487, #47497, #47498, #47505, #47509, #47514 - Failed merges:
Diffstat (limited to 'src/librustc_errors')
| -rw-r--r-- | src/librustc_errors/emitter.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_errors/emitter.rs b/src/librustc_errors/emitter.rs index 1c3d4af9e18..58f851aea38 100644 --- a/src/librustc_errors/emitter.rs +++ b/src/librustc_errors/emitter.rs @@ -1187,8 +1187,8 @@ impl EmitterWriter { let sub_len = parts[0].snippet.trim().chars().fold(0, |acc, ch| { acc + unicode_width::UnicodeWidthChar::width(ch).unwrap_or(0) }); - let underline_start = span_start_pos.col.0 + start; - let underline_end = span_start_pos.col.0 + start + sub_len; + let underline_start = span_start_pos.col_display + start; + let underline_end = span_start_pos.col_display + start + sub_len; for p in underline_start..underline_end { buffer.putc(row_num, max_line_num_len + 3 + p, |
