Skip to main content

luaur_analysis/methods/
internal_compiler_error_what.rs

1use crate::records::internal_compiler_error::InternalCompilerError;
2use core::ffi::c_char;
3
4impl InternalCompilerError {
5    #[inline]
6    pub fn what(&self) -> *const c_char {
7        // NUL-terminated (see `c_message`): `message.as_ptr()` would over-read.
8        self.c_message.as_ptr()
9    }
10}