Skip to content

Commit 22ce069

Browse files
Nick Hamannmichaelsproul
authored andcommitted
Add long diagnostics for E0020
1 parent 6d2b6d5 commit 22ce069

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/librustc/diagnostics.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@ reference when using guards or refactor the entire expression, perhaps by
114114
putting the condition inside the body of the arm.
115115
"##,
116116

117+
E0020: r##"
118+
This error indicates that an attempt was made to divide by zero (or take the
119+
remainder of a zero divisor) in a static or constant expression.
120+
"##,
121+
117122
E0152: r##"
118123
Lang items are already implemented in the standard library. Unless you are
119124
writing a free-standing application (e.g. a kernel), you do not need to provide
@@ -343,7 +348,6 @@ register_diagnostics! {
343348
E0017,
344349
E0018,
345350
E0019,
346-
E0020,
347351
E0022,
348352
E0079, // enum variant: expected signed integer constant
349353
E0080, // enum variant: constant evaluation error

0 commit comments

Comments
 (0)