about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2015-07-24 12:19:36 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2015-07-24 12:19:36 +0200
commit18f4e8ce5eabd77c872b5429b9a0172f0d446c9e (patch)
treefad1c1e561e7db4320f50e2dd11c54f21c044cbf
parent1f810027577461d516297a3cce6f42a201f24a6a (diff)
downloadrust-18f4e8ce5eabd77c872b5429b9a0172f0d446c9e.tar.gz
rust-18f4e8ce5eabd77c872b5429b9a0172f0d446c9e.zip
Add E0430 error explanation
-rw-r--r--src/librustc_resolve/diagnostics.rs13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/librustc_resolve/diagnostics.rs b/src/librustc_resolve/diagnostics.rs
index d3ec6e558b9..8762c82015e 100644
--- a/src/librustc_resolve/diagnostics.rs
+++ b/src/librustc_resolve/diagnostics.rs
@@ -475,6 +475,18 @@ struct Bar2; // ok!
 ```
 "##,
 
+E0430: r##"
+The `self` import appears more than once in the list.
+
+```
+use something::{self, self}; // error: `self` import can only appear once in
+                             //        the list
+```
+
+Please verify you didn't misspell the import name or remove the duplicated
+`self` import.
+"##,
+
 E0433: r##"
 Invalid import. Example of erroneous code:
 
@@ -519,7 +531,6 @@ register_diagnostics! {
     E0426, // use of undeclared label
     E0427, // cannot use `ref` binding mode with ...
     E0429, // `self` imports are only allowed within a { } list
-    E0430, // `self` import can only appear once in the list
     E0431, // `self` import can only appear in an import list with a non-empty
            // prefix
     E0432, // unresolved import