Files
rust/tests/ui/issues
Matthias Krüger 46b18a91ab Rollup merge of #136477 - lqd:nll-tls-spans, r=matthewjasper
Fix a couple NLL TLS spans

Some NLL TLS tests show incorrect spans for the end of function. It seems that the `TerminatorKind::Return` source info span can sometimes point at the single character after the end of the function.

Completely changing the span where the terminator is built also changes a bunch of diagnostics: small functions have more code shown unrelated to the errors at hand, wrapping symbols appear and weird-looking arrows point to the end of function, etc. So it seems this is somehow unexpectedly relied upon in making diagnostics look better and their heuristics.

So I just changed it where it matters for these few tests: the diagnostics specialized to conflict errors with thread locals.

r? `@matthewjasper`
2025-02-04 18:49:39 +01:00
..
2025-01-30 17:10:19 +00:00
2025-02-04 10:57:49 +00:00
2025-02-03 19:00:22 +00:00
2024-07-06 14:24:20 +02:00
2024-07-10 17:15:02 -04:00
2024-07-10 17:15:02 -04:00
2024-04-29 14:53:38 +02:00
2024-11-22 02:32:26 +00:00
2024-11-22 02:32:26 +00:00
2024-04-22 18:48:47 +02:00
2025-01-30 20:37:56 -07:00