I think this is more of an IDE issue, intellij-rust (CLion) has a corresponding issue: https://github.com/intellij-rust/intellij-rust/issues/4627)
It's an ide issue. You can try to switch to the experimental macro engine. It soved the issue for me:
Preferences -> Languages & Frameworks -> Rust -> Expand decl macros -> expand with experimental engine
@SvetlinZarev Followed your step, but it still doesn't work for me. (mac clion2019.2.1 rust1.39.0)
Thanks @SvetlinZarev -- that fixed the issue for me with Arch Linux and CLion 2019.3.
Most helpful comment
@SvetlinZarev Followed your step, but it still doesn't work for me. (mac clion2019.2.1 rust1.39.0)