blob: 0bffe85606ca46b0484444993f75978da0b69015 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#[derive(Debug)]
pub enum CompileError {
/// Reading the bytes of the patio source file failed.
ReadSourceBytes(#[allow(dead_code)] std::io::Error),
/// The Patio source file was invalid.
InvalidPatioSource(#[allow(dead_code)] std::io::Error),
/// 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),
}
|