Skip to content

Commit 7d2fd23

Browse files
author
Nick Hamann
committed
Add long diagnostics for E0020
1 parent b7fb575 commit 7d2fd23

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/librustc/diagnostics.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ reference when using guards or refactor the entire expression, perhaps by
112112
putting the condition inside the body of the arm.
113113
"##,
114114

115+
E0020: r##"
116+
This error indicates that an attempt was made to divide by zero (or take the
117+
remainder of a zero divisor) in a static or constant expression.
118+
"##,
119+
115120
E0152: r##"
116121
Lang items are already implemented in the standard library. Unless you are
117122
writing a free-standing application (e.g. a kernel), you do not need to provide
@@ -319,7 +324,6 @@ register_diagnostics! {
319324
E0017,
320325
E0018,
321326
E0019,
322-
E0020,
323327
E0022,
324328
E0079, // enum variant: expected signed integer constant
325329
E0080, // enum variant: constant evaluation error

0 commit comments

Comments
 (0)