diff options
| author | Jhonny Bill Mena <jhonnybillm@gmail.com> | 2022-11-04 01:16:16 -0400 |
|---|---|---|
| committer | Jhonny Bill Mena <jhonnybillm@gmail.com> | 2022-11-04 01:17:03 -0400 |
| commit | 540c3f94d71879f413a151bc8c83c20c10b386dc (patch) | |
| tree | 8cec8329bb002dc69b0f3420586ab72930c20f50 /compiler/rustc_codegen_ssa/src/errors.rs | |
| parent | 28491a7b36a717e42081fc6ee788433feccb72e6 (diff) | |
| download | rust-540c3f94d71879f413a151bc8c83c20c10b386dc.tar.gz rust-540c3f94d71879f413a151bc8c83c20c10b386dc.zip | |
UPDATE - accept dyn error and make Box<dyn error> conform to IntoDiagnosticArg
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/errors.rs')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/errors.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/compiler/rustc_codegen_ssa/src/errors.rs b/compiler/rustc_codegen_ssa/src/errors.rs index 265f466f2ca..36c94462b0b 100644 --- a/compiler/rustc_codegen_ssa/src/errors.rs +++ b/compiler/rustc_codegen_ssa/src/errors.rs @@ -488,25 +488,25 @@ pub struct OptionGccOnly; #[derive(Diagnostic)] pub enum ExtractBundledLibsError<'a> { #[diag(codegen_ssa_extract_bundled_libs_open_file)] - OpenFile { rlib: &'a Path, error: String }, + OpenFile { rlib: &'a Path, error: Box<dyn std::error::Error> }, #[diag(codegen_ssa_extract_bundled_libs_mmap_file)] - MmapFile { rlib: &'a Path, error: String }, + MmapFile { rlib: &'a Path, error: Box<dyn std::error::Error> }, #[diag(codegen_ssa_extract_bundled_libs_parse_archive)] - ParseArchive { rlib: &'a Path, error: String }, + ParseArchive { rlib: &'a Path, error: Box<dyn std::error::Error> }, #[diag(codegen_ssa_extract_bundled_libs_read_entry)] - ReadEntry { rlib: &'a Path, error: String }, + ReadEntry { rlib: &'a Path, error: Box<dyn std::error::Error> }, #[diag(codegen_ssa_extract_bundled_libs_archive_member)] - ArchiveMember { rlib: &'a Path, error: String }, + ArchiveMember { rlib: &'a Path, error: Box<dyn std::error::Error> }, #[diag(codegen_ssa_extract_bundled_libs_convert_name)] - ConvertName { rlib: &'a Path, error: String }, + ConvertName { rlib: &'a Path, error: Box<dyn std::error::Error> }, #[diag(codegen_ssa_extract_bundled_libs_write_file)] - WriteFile { rlib: &'a Path, error: String }, + WriteFile { rlib: &'a Path, error: Box<dyn std::error::Error> }, } #[derive(Diagnostic)] |
