Skip to content

Commit 3080df3

Browse files
committed
Add long diagnostic for E0138
1 parent e9c1530 commit 3080df3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/librustc/diagnostics.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,12 @@ This error indicates that the compiler found multiple functions with the
815815
point into a Rust program.
816816
"##,
817817

818+
E0138: r##"
819+
This error indicates that the compiler found multiple functions with the
820+
`#[start]` attribute. This is an error because there must be a unique entry
821+
point into a Rust program.
822+
"##,
823+
818824
E0152: r##"
819825
Lang items are already implemented in the standard library. Unless you are
820826
writing a free-standing application (e.g. a kernel), you do not need to provide
@@ -1602,7 +1608,6 @@ register_diagnostics! {
16021608
// E0006 // merged with E0005
16031609
// E0134,
16041610
// E0135,
1605-
E0138,
16061611
E0139,
16071612
E0264, // unknown external lang item
16081613
E0269, // not all control paths return a value

0 commit comments

Comments
 (0)