mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Add eager-expand comment
This commit is contained in:
parent
c89fd01739
commit
874df3bffa
3 changed files with 13 additions and 4 deletions
|
@ -143,6 +143,11 @@ impl server::TokenStream for RaSpanServer {
|
|||
}
|
||||
|
||||
fn expand_expr(&mut self, self_: &Self::TokenStream) -> Result<Self::TokenStream, ()> {
|
||||
// FIXME: requires db, more importantly this requires name resolution so we would need to
|
||||
// eagerly expand this proc-macro, but we can't know that this proc-macro is eager until we
|
||||
// expand it ...
|
||||
// This calls for some kind of marker that a proc-macro wants to access this eager API,
|
||||
// otherwise we need to treat every proc-macro eagerly / or not support this.
|
||||
Ok(self_.clone())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue