How to use Semantics::resolve_path correctly
#21371
-
|
Hi all, I'm progressing in my attempts at using Rust Analyzer crates for my project but I cannot make Recap of my problem:
A second attempt was this:
In the second attempt So it seems that in both cases I miss how to link the What am I doing wrong and how do I fix the issue? Any help is appreciated! :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
A crucial part of working with semantics is to only get AST through it. That means you need to call the |
Beta Was this translation helpful? Give feedback.
A crucial part of working with semantics is to only get AST through it. That means you need to call the
Semantics'source()method and not the type's, otherwise you get a panic like the one you got.