It could be organised like that, I feel it would be useful to be able to use macro_rules macros alongside procedural macros without two separate compilations (which can be done with this approach, but the error reporting code needs to change so it doesn't bail out if the first search fails). I'll give it a try.