How would refactoring work with the existence of macros?


#1

How would refactoring work with the existence of macros? Can an IDE expand a macro without compiling the code? What if the current file is syntactically invalid (e.g. in the middle of editing)?

My Rust wish is to be able to refactor things as easily as in Java.


#2

Refactoring, also inside macros, was demo’d in the RLS demo actually. It might be closer than we’d dare dream.


#3

Looks nice :slight_smile:

I couldn’t get it to build for me (using nightly installed with rustup on Windows: serde_codegen failed to build) but I’ll keep an eye on it.