Files
rust/compiler
Matthias Krüger 27a7ced29f Rollup merge of #89912 - davidtwco:issue-89280-split-lines-multiple-lines, r=oli-obk
emitter: current substitution can be multi-line

Fixes #89280.

In `splice_lines`, there is some arithmetic to compute the required alignment such that future substitutions in a suggestion are aligned correctly. However, this assumed that the current substitution's span was only on a single line. In circumstances where this was not true, it could result in a arithmetic overflow when the substitution's end column was less than the substitution's start column.

r? ````@oli-obk````
2021-10-16 08:02:24 +02:00
..
2021-09-20 22:21:42 -04:00
2021-10-10 15:38:19 +02:00
2021-09-20 22:21:42 -04:00
2021-10-08 19:32:16 +03:00
2021-09-20 22:21:42 -04:00
2021-10-03 16:08:50 +02:00
2021-10-15 01:41:31 +02:00
2021-10-10 19:59:36 +01:00
2021-09-20 22:21:42 -04:00
2021-10-10 15:38:19 +02:00
2021-10-06 19:36:52 +00:00
2021-10-10 15:38:19 +02:00
2021-10-10 15:38:19 +02:00
2021-10-07 11:29:47 -07:00
2021-10-07 22:31:33 +02:00
2021-09-20 22:21:42 -04:00
2021-10-10 15:38:19 +02:00
2021-10-03 16:08:54 +02:00
2021-10-08 20:07:44 +02:00