ice_error

Macro ice_error 

Source
macro_rules! ice_error {
    ($($tt:tt)*) => { ... };
}
Expand description

Create a CompileError from an ICE context.

This is a convenience wrapper around [ice!] that wraps the result in a CompileError for direct use in error returns.

§Syntax

Same as [ice!], but returns a CompileError:

return Err(ice_error!("unexpected type"));
return Err(ice_error!("invalid instruction", phase: "codegen"));