Skip to content

Commit 55955f5

Browse files
Add E0463 error explanation
1 parent 467c668 commit 55955f5

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/librustc_metadata/diagnostics.rs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,20 @@ you want. Example:
5656
```
5757
"##,
5858

59+
E0463: r##"
60+
A plugin/crate was declared but cannot be found. Erroneous code example:
61+
62+
```
63+
#![feature(plugin)]
64+
#![plugin(cookie_monster)] // error: can't find crate for `cookie_monster`
65+
extern crate cake_is_a_lie; // error: can't find crate for `cake_is_a_lie`
66+
```
67+
68+
You need to link your code to the relevant crate in order to be able to use it
69+
(through Cargo or the `-L` option of rustc example). Plugins are crates as
70+
well, and you link to them the same way.
71+
"##,
72+
5973
}
6074

6175
register_diagnostics! {
@@ -66,7 +80,6 @@ register_diagnostics! {
6680
E0460, // found possibly newer version of crate `..`
6781
E0461, // couldn't find crate `..` with expected target triple ..
6882
E0462, // found staticlib `..` instead of rlib or dylib
69-
E0463, // can't find crate for `..`
7083
E0464, // multiple matching crates for `..`
7184
E0465, // multiple .. candidates for `..` found
7285
E0466, // bad macro import

0 commit comments

Comments
 (0)