about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-07-18 13:12:09 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-07-23 12:49:25 +0530
commit3080df36e27ed74399f9fe22e4796e209abd2b69 (patch)
treeb5e5e2348bd764e94002533701c5b3ae7188d150 /src
parente9c15307a97a4389d12a29ec8d0d42171710d71f (diff)
downloadrust-3080df36e27ed74399f9fe22e4796e209abd2b69.tar.gz
rust-3080df36e27ed74399f9fe22e4796e209abd2b69.zip
Add long diagnostic for E0138
Diffstat (limited to 'src')
-rw-r--r--src/librustc/diagnostics.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/librustc/diagnostics.rs b/src/librustc/diagnostics.rs
index 27a0ba31f03..a409ba62f91 100644
--- a/src/librustc/diagnostics.rs
+++ b/src/librustc/diagnostics.rs
@@ -815,6 +815,12 @@ This error indicates that the compiler found multiple functions with the
 point into a Rust program.
 "##,
 
+E0138: r##"
+This error indicates that the compiler found multiple functions with the
+`#[start]` attribute. This is an error because there must be a unique entry
+point into a Rust program.
+"##,
+
 E0152: r##"
 Lang items are already implemented in the standard library. Unless you are
 writing a free-standing application (e.g. a kernel), you do not need to provide
@@ -1602,7 +1608,6 @@ register_diagnostics! {
     // E0006 // merged with E0005
 //  E0134,
 //  E0135,
-    E0138,
     E0139,
     E0264, // unknown external lang item
     E0269, // not all control paths return a value