File tree 3 files changed +6
-3
lines changed
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1134,6 +1134,7 @@ pub fn diagnostics_registry() -> errors::registry::Registry {
1134
1134
all_errors. extend_from_slice ( & rustc_privacy:: DIAGNOSTICS ) ;
1135
1135
all_errors. extend_from_slice ( & rustc_trans:: DIAGNOSTICS ) ;
1136
1136
all_errors. extend_from_slice ( & rustc_const_eval:: DIAGNOSTICS ) ;
1137
+ all_errors. extend_from_slice ( & rustc_metadata:: DIAGNOSTICS ) ;
1137
1138
1138
1139
Registry :: new ( & all_errors)
1139
1140
}
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ A link name was given with an empty name. Erroneous code example:
21
21
The rust compiler cannot link to an external library if you don't give it its
22
22
name. Example:
23
23
24
- ```
24
+ ```ignore
25
25
#[link(name = "some_lib")] extern {} // ok!
26
26
```
27
27
"## ,
@@ -72,7 +72,7 @@ A link was used without a name parameter. Erroneous code example:
72
72
Please add the name parameter to allow the rust compiler to find the library
73
73
you want. Example:
74
74
75
- ```
75
+ ```ignore
76
76
#[link(kind = "dylib", name = "some_lib")] extern {} // ok!
77
77
```
78
78
"## ,
@@ -121,7 +121,7 @@ macro_rules! get_pimientos {
121
121
122
122
// In your crate:
123
123
#[macro_use(get_tacos, get_pimientos)] // It imports `get_tacos` and
124
- extern crate some_crate; // `get_pimientos` macros from some_crate.
124
+ extern crate some_crate; // `get_pimientos` macros from some_crate
125
125
```
126
126
127
127
If you would like to import all exported macros, write `macro_use` with no
Original file line number Diff line number Diff line change @@ -63,3 +63,5 @@ pub mod index;
63
63
pub mod loader;
64
64
pub mod macro_import;
65
65
pub mod tls_context;
66
+
67
+ __build_diagnostic_array ! { librustc_metadata, DIAGNOSTICS }
You can’t perform that action at this time.
0 commit comments