diff options
| author | Oliver Schneider <github333195615777966@oli-obk.de> | 2016-01-30 13:40:40 +0100 |
|---|---|---|
| committer | Oliver Schneider <github333195615777966@oli-obk.de> | 2016-01-30 13:40:40 +0100 |
| commit | 54927ac57f95b4ac6747d29af45fef8e47225852 (patch) | |
| tree | 18b31c90ea0f12b3ef80e227e2040167b0a50dc6 /src/libsyntax/errors | |
| parent | c511d362fc8ef0de4b9231f7058a462eb5d0e8b4 (diff) | |
| download | rust-54927ac57f95b4ac6747d29af45fef8e47225852.tar.gz rust-54927ac57f95b4ac6747d29af45fef8e47225852.zip | |
off by one
Diffstat (limited to 'src/libsyntax/errors')
| -rw-r--r-- | src/libsyntax/errors/emitter.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/errors/emitter.rs b/src/libsyntax/errors/emitter.rs index f6a01d24995..d3982f6a5b6 100644 --- a/src/libsyntax/errors/emitter.rs +++ b/src/libsyntax/errors/emitter.rs @@ -518,7 +518,7 @@ impl EmitterWriter { }; let lo = self.cm.lookup_char_pos(sp.lo); let hi = self.cm.lookup_char_pos(sp.hi); - let elide_sp = (hi.line - lo.line) > MAX_SP_LINES; + let elide_sp = (hi.line - lo.line) >= MAX_SP_LINES; let line_num = line.line_index + 1; if !(lo.line <= line_num && hi.line >= line_num) { |
