1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! This module contains some macros for the most common error messages

#[macro_export]
macro_rules! debris_unimplemented {
    ($span:expr, $msg:expr) => {
        return ::std::result::Result::Err(
            ::debris_core::error::LangError::new(
                ::debris_core::error::LangErrorKind::NotYetImplemented { msg: $msg.into() },
                $span,
            )
            .into(),
        );
    };
}