From 3080df36e27ed74399f9fe22e4796e209abd2b69 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Sat, 18 Jul 2015 13:12:09 +0530 Subject: [PATCH] Add long diagnostic for E0138 --- src/librustc/diagnostics.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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