#[derive(Debug)] pub enum CompileError { /// Reading the bytes of the patio source file failed. ReadSourceBytes(#[allow(dead_code)] std::io::Error), /// The bytes of the patio source were an invalid flatbuffer. InvalidFlatbuffer(#[allow(dead_code)] flatbuffers::InvalidFlatbuffer), /// Enabling PIC failed. EnablePicFailed(#[allow(dead_code)] cranelift_codegen::settings::SetError), /// Could not parse the target triple. ParseTargetTriple(#[allow(dead_code)] target_lexicon::ParseError), /// The ISA for the target triple could not be found. LookupIsa(#[allow(dead_code)] cranelift_codegen::isa::LookupError), /// Building the ISA failed. BuildIsa(#[allow(dead_code)] cranelift_codegen::CodegenError), /// Create a new object builder failed. ObjectBuilderNewFailed(#[allow(dead_code)] cranelift_module::ModuleError), /// Emitting the bytes for an object failed. ObjectEmitFailed(#[allow(dead_code)] cranelift_object::object::write::Error), /// Writing the object file to disk failed. WriteObjectFile(#[allow(dead_code)] std::io::Error), }