Skip to content

Commit b0b072d

Browse files
committed
ADD - codegen_ssa initial diags translations machinery
ADD - migrate MissingNativeStaticLibrary fatal error
1 parent e42c4d7 commit b0b072d

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//! Errors emitted by codegen_ssa
2+
3+
use rustc_macros::SessionDiagnostic;
4+
5+
#[derive(SessionDiagnostic)]
6+
#[diag(codegen_ssa::missing_native_static_library)]
7+
pub struct MissingNativeStaticLibrary<'a> {
8+
pub library_name: &'a str,
9+
}

compiler/rustc_codegen_ssa/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ pub mod base;
4343
pub mod common;
4444
pub mod coverageinfo;
4545
pub mod debuginfo;
46+
pub mod errors;
4647
pub mod glue;
4748
pub mod meth;
4849
pub mod mir;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
codegen_ssa_missing_native_static_library = could not find native static library `{$library_name}`, perhaps an -L flag is missing?

compiler/rustc_error_messages/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ fluent_messages! {
6363
symbol_mangling => "../locales/en-US/symbol_mangling.ftl",
6464
trait_selection => "../locales/en-US/trait_selection.ftl",
6565
ty_utils => "../locales/en-US/ty_utils.ftl",
66+
codegen_ssa => "../locales/en-US/codegen_ssa.ftl",
6667
}
6768

6869
pub use fluent_generated::{self as fluent, DEFAULT_LOCALE_RESOURCES};

0 commit comments

Comments
 (0)