You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think it's a duplicate. The code worked on a rustc from ~three days ago or so, it regressed very recently. Also the error message looks a bit different.
This is caused by the compiler indexing out of bounds while trying to print lines for diagnostics and is heavily dependent on the precise structure of which macros are used, their internals and the offsets/spacing in the main file. As such ever instance is subtly different and it can appear/disappear as the macros change slightly, but they all have the common threads of macros and previous diagnostics.
There's quite a few other dupes of #14091 linked on that bug, some of which are closer to this. There's so currently a PR open that apparently fixes these bugs. (I'm on my phone so cannot easily find them myself right now.)
This code:
Produces this very hard to understand error:
The text was updated successfully, but these errors were encountered: