Skip to content

Commit 32b8fd6

Browse files
Nick Hamannmichaelsproul
authored andcommitted
---
yaml --- r: 209610 b: refs/heads/try c: 017bc44 h: refs/heads/master v: v3
1 parent 82be0aa commit 32b8fd6

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 3e561f05c00cd180ec02db4ccab2840a4aba93d2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
5-
refs/heads/try: 22ce069c7e4e008d4835a669b85bee3d93a84172
5+
refs/heads/try: 017bc44712b94d22165672fd546b7e084fc3b404
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/src/librustc/diagnostics.rs

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

117+
E0015: r##"
118+
The only function calls allowed in static or constant expressions are enum
119+
variant constructors or struct constructors (for unit or tuple structs). This
120+
is because Rust currently does not support compile-time function execution.
121+
"##,
122+
117123
E0020: r##"
118124
This error indicates that an attempt was made to divide by zero (or take the
119125
remainder of a zero divisor) in a static or constant expression.
@@ -343,7 +349,6 @@ register_diagnostics! {
343349
E0012,
344350
E0013,
345351
E0014,
346-
E0015,
347352
E0016,
348353
E0017,
349354
E0018,

0 commit comments

Comments
 (0)