Files
rust/compiler
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-03-11 10:53:47 -06:00
2023-07-12 21:38:55 -04:00
2023-05-02 10:45:16 -07:00
2023-07-03 07:20:51 +00:00
2023-07-02 21:02:31 +02:00
2023-07-19 16:37:09 +00:00
2023-07-03 13:51:54 -07:00