Skip to main content

bailat

Macro bailat 

Source
macro_rules! bailat {
    ($spec:expr, $($arg:tt)*) => { ... };
}
Expand description

Compile-time bail! that attaches an ErrorContext carrying the expression’s Origin and SourcePosition. The LSP recovers both by downcasting ErrorContext out of the anyhow chain — no message-string scraping. Use this instead of bail!("at {} …", spec.pos) in compile paths where the spec Expr is in scope.