]> git.lizzy.rs Git - rust.git/commitdiff
Add long diagnostic for E0138
authorManish Goregaokar <manishsmail@gmail.com>
Sat, 18 Jul 2015 07:42:09 +0000 (13:12 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Thu, 23 Jul 2015 07:19:25 +0000 (12:49 +0530)
src/librustc/diagnostics.rs

index 27a0ba31f03d2636e186ffdf133bc7ae19b6aa79..a409ba62f91cb21e12b2acf8bc53c1fec1a684c1 100644 (file)
@@ -815,6 +815,12 @@ fn main() {
 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 @@ fn foo<'a>(arg: &Box<SomeTrait+'a>) { ... }
     // E0006 // merged with E0005
 //  E0134,
 //  E0135,
-    E0138,
     E0139,
     E0264, // unknown external lang item
     E0269, // not all control paths return a value