Proc_derive_macro, proc_attribute_macro, IntelliJ auto completion

In my current experience: proc_derive_macro / macro_rules! works fine with IntelliJ intellisense (auto completion, goto def/impl, etc ...).

However, proc_attribute_macro seems to be INVISIBLE to IntelliJ. Concretely, consider the following attribute macro:

pub fn fwd_decl(attr: proc_macro::TokenStream, input: proc_macro::TokenStream) -> proc_macro::TokenStream {

So this macro does nothing, except output it's input (i.e. it is an "identity" macro).

Now, consider the following usage:

pub struct Foo {}

impl Foo {
    pub fn new() -> Foo {
        Foo {}

    pub fn other(&self) -> u32 {

fn it_works() {
    let f = Foo::new();


The unit test compiles and runs fine (so the "identity" macro is working), but IntelliJ is broken on ::new() , .other(), and the return type of Foo::new().

Question: is there anyway to make this work?

I think I have all the proc macro options turned on:

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.