diff options
| author | Nick Hamann <nick@wabbo.org> | 2015-04-16 00:46:41 -0500 |
|---|---|---|
| committer | Michael Sproul <micsproul@gmail.com> | 2015-04-18 08:40:57 +1000 |
| commit | 22ce069c7e4e008d4835a669b85bee3d93a84172 (patch) | |
| tree | 11190e02938dcb74dd8cdd748e7da6cc33ed7e39 | |
| parent | 6d2b6d5a19224eee279c44e8ff2bb37ba331d1df (diff) | |
| download | rust-22ce069c7e4e008d4835a669b85bee3d93a84172.tar.gz rust-22ce069c7e4e008d4835a669b85bee3d93a84172.zip | |
Add long diagnostics for E0020
| -rw-r--r-- | src/librustc/diagnostics.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/librustc/diagnostics.rs b/src/librustc/diagnostics.rs index 092d0cc4424..4f1fc4150fd 100644 --- a/src/librustc/diagnostics.rs +++ b/src/librustc/diagnostics.rs @@ -114,6 +114,11 @@ reference when using guards or refactor the entire expression, perhaps by putting the condition inside the body of the arm. "##, +E0020: r##" +This error indicates that an attempt was made to divide by zero (or take the +remainder of a zero divisor) in a static or constant expression. +"##, + 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 @@ -343,7 +348,6 @@ register_diagnostics! { E0017, E0018, E0019, - E0020, E0022, E0079, // enum variant: expected signed integer constant E0080, // enum variant: constant evaluation error |
