Macro Keyword

This would mean that no tool other than cargo (or rustc with the right command line arguments) would be able to parse Rust sourcefiles anymore. Because for parsing Rust you would then need to first compile the dependencies to find and execute the macro definition that takes over the role of the parser.

Take rustfmt for example. It wouldn't be able to tell where a macro invocation ends anymore.

3 Likes