1
Fork 0

ADD - codegen_ssa initial diags translations machinery

ADD - migrate MissingNativeStaticLibrary fatal error
This commit is contained in:
Jhonny Bill Mena 2022-10-04 13:23:53 -04:00
parent e42c4d7218
commit b0b072d747
4 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,9 @@
//! Errors emitted by codegen_ssa
use rustc_macros::SessionDiagnostic;
#[derive(SessionDiagnostic)]
#[diag(codegen_ssa::missing_native_static_library)]
pub struct MissingNativeStaticLibrary<'a> {
pub library_name: &'a str,
}

View file

@ -43,6 +43,7 @@ pub mod base;
pub mod common;
pub mod coverageinfo;
pub mod debuginfo;
pub mod errors;
pub mod glue;
pub mod meth;
pub mod mir;

View file

@ -0,0 +1 @@
codegen_ssa_missing_native_static_library = could not find native static library `{$library_name}`, perhaps an -L flag is missing?

View file

@ -63,6 +63,7 @@ fluent_messages! {
symbol_mangling => "../locales/en-US/symbol_mangling.ftl",
trait_selection => "../locales/en-US/trait_selection.ftl",
ty_utils => "../locales/en-US/ty_utils.ftl",
codegen_ssa => "../locales/en-US/codegen_ssa.ftl",
}
pub use fluent_generated::{self as fluent, DEFAULT_LOCALE_RESOURCES};