diff options
| author | bors <bors@rust-lang.org> | 2017-12-01 06:06:06 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-12-01 06:06:06 +0000 |
| commit | d1364a65c0e064ee12aea8d58aceb403b8200682 (patch) | |
| tree | 4610cdc2a8f401adb2cca09a6594d52fd1c74299 /src/librustc_errors | |
| parent | 804b15be82ea668d943fab70195eb57a2f942d4b (diff) | |
| parent | cf9283ea9376525c59015a52c729e7a79f576426 (diff) | |
| download | rust-d1364a65c0e064ee12aea8d58aceb403b8200682.tar.gz rust-d1364a65c0e064ee12aea8d58aceb403b8200682.zip | |
Auto merge of #45997 - estebank:pub-ident, r=nikomatsakis
Account for missing keyword in fn/struct definition Fix #38911.
Diffstat (limited to 'src/librustc_errors')
| -rw-r--r-- | src/librustc_errors/emitter.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_errors/emitter.rs b/src/librustc_errors/emitter.rs index 389626a87ee..16bbd755b88 100644 --- a/src/librustc_errors/emitter.rs +++ b/src/librustc_errors/emitter.rs @@ -1156,7 +1156,7 @@ impl EmitterWriter { let start = parts[0].snippet.len() - parts[0].snippet.trim_left().len(); let sub_len = parts[0].snippet.trim().len(); let underline_start = span_start_pos.col.0 + start; - let underline_end = span_start_pos.col.0 + sub_len; + let underline_end = span_start_pos.col.0 + start + sub_len; for p in underline_start..underline_end { buffer.putc(row_num, max_line_num_len + 3 + p, |
