Add librustc metadata error codes to global check

This commit is contained in:
ggomez
2016-08-29 16:27:04 +02:00
committed by Guillaume Gomez
parent 5629f7e621
commit 7c53eb97df
3 changed files with 6 additions and 3 deletions
+1
View File
@@ -1134,6 +1134,7 @@ pub fn diagnostics_registry() -> errors::registry::Registry {
all_errors.extend_from_slice(&rustc_privacy::DIAGNOSTICS);
all_errors.extend_from_slice(&rustc_trans::DIAGNOSTICS);
all_errors.extend_from_slice(&rustc_const_eval::DIAGNOSTICS);
all_errors.extend_from_slice(&rustc_metadata::DIAGNOSTICS);
Registry::new(&all_errors)
}
+3 -3
View File
@@ -21,7 +21,7 @@
The rust compiler cannot link to an external library if you don't give it its
name. Example:
```
```ignore
#[link(name = "some_lib")] extern {} // ok!
```
"##,
@@ -72,7 +72,7 @@
Please add the name parameter to allow the rust compiler to find the library
you want. Example:
```
```ignore
#[link(kind = "dylib", name = "some_lib")] extern {} // ok!
```
"##,
@@ -121,7 +121,7 @@ macro_rules! get_pimientos {
// In your crate:
#[macro_use(get_tacos, get_pimientos)] // It imports `get_tacos` and
extern crate some_crate; // `get_pimientos` macros from some_crate.
extern crate some_crate; // `get_pimientos` macros from some_crate
```
If you would like to import all exported macros, write `macro_use` with no
+2
View File
@@ -63,3 +63,5 @@
pub mod loader;
pub mod macro_import;
pub mod tls_context;
__build_diagnostic_array! { librustc_metadata, DIAGNOSTICS }