4 ms·
The bigger problem is that neither rust-analyzer nor IntelliJ Rust currently support go-to-definition for trait methods. They will just give you a popup with al
by jolux 5y ago
The bigger problem is that neither rust-analyzer nor IntelliJ Rust currently support go-to-definition for trait methods. They will just give you a popup with all the overloads. I understand this is being worked on with Chalk but it's quite jarring coming from Java and C#.
edit: here's the GitHub thread https://github.com/rust-analyzer/rust-analyzer/issues/4558 https://github.com/rust-analyzer/rust-analyzer/issues/4558
- veber-alex 5y agoAs mentioned in that github thread, this works in JetBrains IDEs. For rust-analyzer it's blocked on improvements in Chalk.
- jolux 5y agoYeah, except I've tried it in CLion with the plugin, and it doesn't work.
- IshKebab 5y agoIt does support go to definition for trait methods. It just goes to the declaration, not the implementation. Not ideal, but still way better than just not doing anything.
- jolux 5y agoWell, it should support go to implementation too.