Lines Matching refs:with
47 //! annotated with any of `#[proc_macro]`, `#[proc_macro_derive]`, `#[proc_macro_attribute]`).
61 //! In order to correctly cooperate with `#[proc_macro_hack]`, `#[proc_macro_error]`
88 //! present it will panic. It's the intention - this crate is supposed to be used only with
102 //! You would need this for code that uses `lazy_static` or `thread_local` with
225 //! span, message; // <--- attachments start with `;` (semicolon)
227 //! help = "format {} {}", "arg1", "arg2"; // <--- every attachment ends with `;`,
249 //! [`Diagnostic`] type is intentionally designed to be API compatible with [`proc_macro::Diagnostic`].
313 /// Create a range with the `first` and `last` spans being the same.
357 /// This traits expands `Result<T, Into<Diagnostic>>` with some handy shortcuts.
367 /// If it aborts then resulting error message will be preceded with `message`.
371 /// This traits expands `Option` with some handy shortcuts.
431 ENTERED_ENTRY_POINT.with(|flag| flag.set(flag.get() + 1));
435 ENTERED_ENTRY_POINT.with(|flag| flag.set(flag.get() - 1));
482 if ENTERED_ENTRY_POINT.with(|flag| flag.get()) == 0 {
485 perhaps you forgot to annotate your #[proc_macro] function with `#[proc_macro_error]"