Matthias Krüger
770c8d0667
Rollup merge of #113871 - clubby789:derive-sugg-span, r=compiler-errors
...
Use the correct span for displaying the line following a derive sugge…
`span` here is the main span of the diagnostic. In the linked issue's case, this belongs to `main.rs`. However, the line numbers (and line we are trying to display) are in `name.rs`, so using `span_to_lines` gives us the wrong `FileLines`.
Use `parts[0].span` (the span of the suggestion) here like the rest of the code does to get the right file.
Not sure if this needs a dedicated test because this fixes an existing error in the UI suite
Fixes #113844
2023-07-20 07:08:43 +02:00
..
2023-07-10 20:09:26 +00:00
2023-07-18 21:53:34 -04:00
2023-07-18 21:53:34 -04:00
2023-07-18 21:53:34 -04:00
2023-07-18 21:53:34 -04:00
2023-07-12 12:11:09 +00:00
2023-07-16 19:22:03 +08:00
2023-07-10 20:09:26 +00:00
2023-07-14 07:12:38 +08:00
2023-07-10 20:09:26 +00:00
2023-07-14 07:12:35 +08:00
2023-07-18 18:58:18 +08:00
2023-07-14 13:27:35 +01:00
2023-07-10 20:09:28 +00:00
2023-07-18 21:53:34 -04:00
2023-07-18 21:53:34 -04:00
2023-07-18 21:53:34 -04:00
2023-07-18 21:53:34 -04:00
2023-07-16 15:02:08 -07:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-05 19:52:28 -04:00
2023-07-18 21:53:34 -04:00
2023-07-16 15:36:19 +02:00
2023-07-10 19:01:30 +00:00
2023-07-19 16:37:09 +00:00
2023-07-10 20:09:26 +00:00
2023-07-07 13:13:18 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-14 01:59:08 +00:00
2023-07-20 03:18:41 +00:00
2023-07-16 15:36:19 +02:00
2023-07-18 21:53:34 -04:00
2023-07-19 16:24:58 +00:00
2023-07-18 21:53:34 -04:00
2023-07-14 17:48:13 -04:00
2023-07-10 20:09:26 +00:00
2023-07-05 19:52:28 -04:00
2023-07-05 19:52:28 -04:00
2023-07-18 09:52:08 +08:00
2023-07-14 07:12:35 +08:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00
2023-07-19 23:48:43 +00:00
2023-07-10 20:09:28 +00:00
2023-07-10 20:09:26 +00:00
2023-07-14 13:27:35 +01:00
2023-07-10 20:09:26 +00:00
2023-07-11 02:40:59 +00:00
2023-07-11 01:19:11 +02:00
2023-07-11 17:52:43 +08:00
2023-07-14 16:53:36 +01:00
2023-07-18 21:53:34 -04:00
2023-07-10 20:09:26 +00:00
2023-07-20 03:18:41 +00:00
2023-07-19 22:37:07 +05:30
2023-07-05 11:04:28 -05:00
2023-07-18 18:58:18 +08:00
2023-07-18 21:53:34 -04:00
2023-07-10 20:09:26 +00:00
2023-07-14 07:12:35 +08:00
2023-07-14 13:27:35 +01:00
2023-07-20 03:18:41 +00:00
2023-07-18 09:07:32 +00:00
2023-07-16 12:38:43 +02:00
2023-07-18 21:53:34 -04:00
2023-07-20 03:18:41 +00:00
2023-07-08 20:53:27 +02:00
2023-07-15 11:59:38 -04:00
2023-07-10 20:09:26 +00:00
2023-07-11 01:19:11 +02:00
2023-07-10 20:09:26 +00:00
2023-07-10 20:09:26 +00:00