Replace diagnostic plugins with macro_rules
This commit is contained in:
parent
74563b4166
commit
b437240cee
32 changed files with 87 additions and 351 deletions
|
|
@ -1,4 +1,4 @@
|
|||
register_long_diagnostics! {
|
||||
register_diagnostics! {
|
||||
|
||||
E0511: r##"
|
||||
Invalid monomorphization of an intrinsic function was used. Erroneous code
|
||||
|
|
|
|||
|
|
@ -256,7 +256,7 @@ impl CodegenBackend for LlvmCodegenBackend {
|
|||
}
|
||||
|
||||
fn diagnostics(&self) -> &[(&'static str, &'static str)] {
|
||||
&DIAGNOSTICS
|
||||
&error_codes::DIAGNOSTICS
|
||||
}
|
||||
|
||||
fn target_features(&self, sess: &Session) -> Vec<Symbol> {
|
||||
|
|
@ -425,5 +425,3 @@ impl Drop for ModuleLlvm {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
__build_diagnostic_array! { librustc_codegen_llvm, DIAGNOSTICS }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue