luaur_analysis/records/
user_cancel_error.rs1use crate::records::internal_compiler_error::InternalCompilerError;
2use luaur_ast::records::location::Location;
3
4#[derive(Debug, Clone)]
5pub struct UserCancelError {
6 pub base: InternalCompilerError,
7}
8
9unsafe impl Send for UserCancelError {}
10unsafe impl Sync for UserCancelError {}
11
12#[cfg(feature = "std")]
13impl std::error::Error for UserCancelError {}
14
15impl core::fmt::Display for UserCancelError {
16 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
17 write!(f, "{}", self.base.message)
18 }
19}