UPDATE - LibDefWriteFailure to accept type instead of formatted string
This follows team’s suggestions in this thread 295305249
This commit is contained in:
parent
4e0de5319c
commit
0a2d7f83cb
3 changed files with 9 additions and 8 deletions
|
@ -1,6 +1,7 @@
|
|||
//! Errors emitted by codegen_ssa
|
||||
|
||||
use rustc_macros::SessionDiagnostic;
|
||||
use std::io::Error;
|
||||
|
||||
#[derive(SessionDiagnostic)]
|
||||
#[diag(codegen_ssa::missing_native_static_library)]
|
||||
|
@ -11,5 +12,5 @@ pub struct MissingNativeStaticLibrary<'a> {
|
|||
#[derive(SessionDiagnostic)]
|
||||
#[diag(codegen_ssa::lib_def_write_failure)]
|
||||
pub struct LibDefWriteFailure {
|
||||
pub error_description: String,
|
||||
pub error: Error,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue