2022-10-04 13:23:53 -04:00
|
|
|
//! Errors emitted by codegen_ssa
|
|
|
|
|
|
|
|
|
|
use rustc_macros::SessionDiagnostic;
|
2022-08-26 20:21:55 -04:00
|
|
|
use std::io::Error;
|
2022-10-04 13:23:53 -04:00
|
|
|
|
|
|
|
|
#[derive(SessionDiagnostic)]
|
|
|
|
|
#[diag(codegen_ssa::missing_native_static_library)]
|
|
|
|
|
pub struct MissingNativeStaticLibrary<'a> {
|
|
|
|
|
pub library_name: &'a str,
|
|
|
|
|
}
|
2022-08-24 23:40:07 -04:00
|
|
|
|
|
|
|
|
#[derive(SessionDiagnostic)]
|
|
|
|
|
#[diag(codegen_ssa::lib_def_write_failure)]
|
|
|
|
|
pub struct LibDefWriteFailure {
|
2022-08-26 20:21:55 -04:00
|
|
|
pub error: Error,
|
2022-08-24 23:40:07 -04:00
|
|
|
}
|