Skip to content

Commit c6445ba

Browse files
committed
Clarify failure condition on tests
1 parent 0cdc58a commit c6445ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc_metadata/diagnostics.rs

+3-3
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-
```ignore (cannot-test-this-because-???)
17+
```ignore (cannot-test-this-because-rustdoc-stops-compile-fail-before-trans)
1818
#[link(name = "")] extern {} // error: #[link(name = "")] given with empty name
1919
```
2020
@@ -51,7 +51,7 @@ https://doc.rust-lang.org/book/first-edition/conditional-compilation.html
5151
E0458: r##"
5252
An unknown "kind" was specified for a link attribute. Erroneous code example:
5353
54-
```ignore (cannot-test-this-because-???)
54+
```ignore (cannot-test-this-because-rustdoc-stops-compile-fail-before-trans)
5555
#[link(kind = "wonderful_unicorn")] extern {}
5656
// error: unknown kind: `wonderful_unicorn`
5757
```
@@ -67,7 +67,7 @@ Please specify a valid "kind" value, from one of the following:
6767
E0459: r##"
6868
A link was used without a name parameter. Erroneous code example:
6969
70-
```ignore (cannot-test-this-because-???)
70+
```ignore (cannot-test-this-because-rustdoc-stops-compile-fail-before-trans)
7171
#[link(kind = "dylib")] extern {}
7272
// error: #[link(...)] specified without `name = "foo"`
7373
```

0 commit comments

Comments
 (0)