luaur-analysis 0.1.3

Luau type checker and type inference (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::records::internal_compiler_error::InternalCompilerError;

#[derive(Debug, Clone)]
pub struct TimeLimitError {
    pub base: InternalCompilerError,
}

unsafe impl Send for TimeLimitError {}
unsafe impl Sync for TimeLimitError {}

#[cfg(feature = "std")]
impl std::error::Error for TimeLimitError {}

impl core::fmt::Display for TimeLimitError {
    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
        write!(f, "{}", self.base.message)
    }
}