Up to date examples for compiler plugins?


This seems to be very much outdated. Is there an up to date example for compiler plugins or am I on my own?

Are there any resources that you can recommend?


The examples from the book are kept up to date here. If you want to help, you can sync the book with the examples, so no one runs into the same problem you did.


Thanks, I could have sworn that I had this file open, but I probably didn’t notice the small changes.

It seems that the nightly docs are also not kept up to date? Or at least there doesn’t seem to be docs for syntax.


We don’t distribute private docs, and right now, compiler plugins use private APIs. That’s why they’re not there. https://manishearth.github.io/rust-internals-docs/rustc/ is a copy of them, though.