Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
proc_macro_error::emit_error - Rust
[go: Go Back, main page]

[][src]Macro proc_macro_error::emit_error

macro_rules! emit_error {
    ($span:expr, $fmt:expr, $($args:expr),*) => { ... };
    ($span:expr, $msg:expr) => { ... };
    ($err:expr) => { ... };
}

Emit an error while not aborting the proc-macro right away.

The emitted errors will be converted to a TokenStream sequence of compile_error! invocations after the execution hits the end of the function marked with [proc_macro_error] or the lambda passed to entry_point.

Syntax

The same as abort!.

Note:

If a panic occurs somewhere in your macro no errors will be shown.