Lines Matching defs:proc_macro
8 //! To achieve his, this crate serves as a tiny shim around `proc_macro::Diagnostic` and
13 //! So you can just use this crate and have *both* some of `proc_macro::Diagnostic` functionality
47 //! annotated with any of `#[proc_macro]`, `#[proc_macro_derive]`, `#[proc_macro_attribute]`).
69 //! #[proc_macro]
87 //! If none of `#[proc_macro]`, `#[proc_macro_derive]` nor `#[proc_macro_attribute]` are
94 //! `proc_macro::TokenStream`.
106 //! marked as `#[proc_macro]`, `#[proc_macro_derive]` or `#[proc_macro_attribute]`.
130 //! * [`proc_macro::Span`]
148 //! [`proc_macro::Diagnostic`]-like usage - emit the error but keep going,
206 //! > If you have some type from `proc_macro` or `syn` to point to, do not call `.span()`
249 //! [`Diagnostic`] type is intentionally designed to be API compatible with [`proc_macro::Diagnostic`].
262 //! [`proc_macro::Span`]: https://doc.rust-lang.org/proc_macro/struct.Span.html
263 //! [`proc_macro::Diagnostic`]: https://doc.rust-lang.org/proc_macro/struct.Diagnostic.html
278 extern crate proc_macro;
427 pub fn entry_point<F>(f: F, proc_macro_hack: bool) -> proc_macro::TokenStream
429 F: FnOnce() -> proc_macro::TokenStream + UnwindSafe,
485 perhaps you forgot to annotate your #[proc_macro] function with `#[proc_macro_error]"
494 pub extern crate proc_macro;
546 impl SpanAsSpanRange for proc_macro::Span {