Add librustc metadata error codes to global check
This commit is contained in:
parent
5629f7e621
commit
7c53eb97df
3 changed files with 6 additions and 3 deletions
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ A link name was given with an empty name. Erroneous code example:
|
|||
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 @@ A link was used without a name parameter. Erroneous code example:
|
|||
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
|
||||
|
|
|
@ -63,3 +63,5 @@ pub mod index;
|
|||
pub mod loader;
|
||||
pub mod macro_import;
|
||||
pub mod tls_context;
|
||||
|
||||
__build_diagnostic_array! { librustc_metadata, DIAGNOSTICS }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue