]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #60160 - xldenis:fix-overlapping-zero-width-annotation, r=estebank
authorMazdak Farrokhzad <twingoow@gmail.com>
Thu, 25 Apr 2019 01:05:24 +0000 (03:05 +0200)
committerGitHub <noreply@github.com>
Thu, 25 Apr 2019 01:05:24 +0000 (03:05 +0200)
commita4ef188ab6008c6f600e06a7e01e81f75370d574
tree0d1e0f669217b452ad987024276fefe008bee236
parentbb892be98edeced022881397b1d64b968943aea7
parent4a073dda936b2bc594056dca43c3ea51479435fe
Rollup merge of #60160 - xldenis:fix-overlapping-zero-width-annotation, r=estebank

Fix #58270, fix off-by-one error in error diagnostics.

This fixes #58270 by checking if two diagnostics overlap completely when we're calculating the line offset for each message.