about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/errors.rs
blob: 13d9c1a7b6b8d7b4fe702722a18df08ab7811fba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Errors emitted by codegen_ssa

use rustc_macros::SessionDiagnostic;
use std::io::Error;

#[derive(SessionDiagnostic)]
#[diag(codegen_ssa::missing_native_static_library)]
pub struct MissingNativeStaticLibrary<'a> {
    pub library_name: &'a str,
}

#[derive(SessionDiagnostic)]
#[diag(codegen_ssa::lib_def_write_failure)]
pub struct LibDefWriteFailure {
    pub error: Error,
}