ADD - codegen_ssa initial diags translations machinery
ADD - migrate MissingNativeStaticLibrary fatal error
This commit is contained in:
parent
e42c4d7218
commit
b0b072d747
4 changed files with 12 additions and 0 deletions
9
compiler/rustc_codegen_ssa/src/errors.rs
Normal file
9
compiler/rustc_codegen_ssa/src/errors.rs
Normal 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,
|
||||||
|
}
|
|
@ -43,6 +43,7 @@ pub mod base;
|
||||||
pub mod common;
|
pub mod common;
|
||||||
pub mod coverageinfo;
|
pub mod coverageinfo;
|
||||||
pub mod debuginfo;
|
pub mod debuginfo;
|
||||||
|
pub mod errors;
|
||||||
pub mod glue;
|
pub mod glue;
|
||||||
pub mod meth;
|
pub mod meth;
|
||||||
pub mod mir;
|
pub mod mir;
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
codegen_ssa_missing_native_static_library = could not find native static library `{$library_name}`, perhaps an -L flag is missing?
|
|
@ -63,6 +63,7 @@ fluent_messages! {
|
||||||
symbol_mangling => "../locales/en-US/symbol_mangling.ftl",
|
symbol_mangling => "../locales/en-US/symbol_mangling.ftl",
|
||||||
trait_selection => "../locales/en-US/trait_selection.ftl",
|
trait_selection => "../locales/en-US/trait_selection.ftl",
|
||||||
ty_utils => "../locales/en-US/ty_utils.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};
|
pub use fluent_generated::{self as fluent, DEFAULT_LOCALE_RESOURCES};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue