Skip to content

Commit 2c190ad

Browse files
Update block codes' flags
1 parent 413ada3 commit 2c190ad

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/librustc_metadata/diagnostics.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ register_long_diagnostics! {
1414
E0454: r##"
1515
A link name was given with an empty name. Erroneous code example:
1616
17-
```
17+
```compile_fail,E0454
1818
#[link(name = "")] extern {} // error: #[link(name = "")] given with empty name
1919
```
2020
@@ -32,7 +32,7 @@ as frameworks are specific to that operating system.
3232
3333
Erroneous code example:
3434
35-
```compile_fail"
35+
```compile_fail,E0455
3636
#[link(name = "FooCoreServices", kind = "framework")] extern {}
3737
// OS used to compile is Linux for example
3838
```
@@ -50,7 +50,7 @@ See more: https://doc.rust-lang.org/book/conditional-compilation.html
5050
E0458: r##"
5151
An unknown "kind" was specified for a link attribute. Erroneous code example:
5252
53-
```
53+
```compile_fail,E0458
5454
#[link(kind = "wonderful_unicorn")] extern {}
5555
// error: unknown kind: `wonderful_unicorn`
5656
```
@@ -64,7 +64,7 @@ Please specify a valid "kind" value, from one of the following:
6464
E0459: r##"
6565
A link was used without a name parameter. Erroneous code example:
6666
67-
```
67+
```compile_fail,E0459
6868
#[link(kind = "dylib")] extern {}
6969
// error: #[link(...)] specified without `name = "foo"`
7070
```
@@ -80,7 +80,7 @@ you want. Example:
8080
E0463: r##"
8181
A plugin/crate was declared but cannot be found. Erroneous code example:
8282
83-
```
83+
```compile_fail,E0463
8484
#![feature(plugin)]
8585
#![plugin(cookie_monster)] // error: can't find crate for `cookie_monster`
8686
extern crate cake_is_a_lie; // error: can't find crate for `cake_is_a_lie`

0 commit comments

Comments
 (0)