Skip to main content

luaur_analysis/methods/
time_limit_error_time_limit_error.rs

1use crate::records::internal_compiler_error::InternalCompilerError;
2use crate::records::time_limit_error::TimeLimitError;
3use alloc::format;
4
5impl TimeLimitError {
6    pub fn time_limit_error_time_limit_error(module_name: &str) -> Self {
7        Self {
8            base: InternalCompilerError::new(
9                format!("Typeinfer failed to complete in allotted time"),
10                Some(module_name.to_owned()),
11                None,
12            ),
13        }
14    }
15}