In save-analysis, enum variant ref ids are inconsistent to def ids #61302
Labels
A-save-analysis
Area: saving results of analyses such as inference and borrowck results to a file.
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
In rls/vscode, if you right-click on an enum name, it shows you all its uses. If you right click on a name of one of its variants, there are no uses shown despite there being some.
This doesn't seem to be fault of rls. Apparently the save-analysis info fed to rls is wrong. See the output presented here. In the defs table, the
Foo
enum has index 12 while theFoo::Bar
variant has index 13. In the refs table, the correct index 12 is used to reference the enum, but the enum variant is referenced with index 14 which doesn't even exist in the defs table.The text was updated successfully, but these errors were encountered: