diff options
| author | bors <bors@rust-lang.org> | 2018-12-14 06:52:19 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-12-14 06:52:19 +0000 |
| commit | 664ede88faf57b8fc09715fc66cd9e46490ce64d (patch) | |
| tree | a3e57a948123750226a0fed966826221420039c2 /src/librustc_errors | |
| parent | 97a0bd60820374165427962e9802f4f3c3f7ff7b (diff) | |
| parent | cf47a19305d929d1870414dd6911ca3191597668 (diff) | |
| download | rust-664ede88faf57b8fc09715fc66cd9e46490ce64d.tar.gz rust-664ede88faf57b8fc09715fc66cd9e46490ce64d.zip | |
Auto merge of #56536 - alexcrichton:update-master, r=Mark-Simulacrum
Bump to 1.33.0 * Update bootstrap compiler * Update version to 1.33.0 * Remove some `#[cfg(stage0)]` annotations
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 ae9f6a5e140..7bd0f0f8fc4 100644 --- a/src/librustc_errors/emitter.rs +++ b/src/librustc_errors/emitter.rs @@ -1262,7 +1262,7 @@ impl EmitterWriter { // Do not underline the leading... let start = part.snippet.len() - .saturating_sub(part.snippet.trim_left().len()); + .saturating_sub(part.snippet.trim_start().len()); // ...or trailing spaces. Account for substitutions containing unicode // characters. let sub_len = part.snippet.trim().chars().fold(0, |acc, ch| { |
