File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
branches/try/src/librustc Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 3e561f05c00cd180ec02db4ccab2840a4aba93d2
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
5
- refs/heads/try: 77e8ddfaf342a94a7d3c3167c31199bf26b04f1f
5
+ refs/heads/try: 0e4a77bbfeb56e715ffdc5419247c46f22ff1ffa
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
8
8
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
Original file line number Diff line number Diff line change @@ -293,6 +293,16 @@ match Some(5) {
293
293
}
294
294
295
295
See also https://github.com/rust-lang/rust/issues/14587
296
+ "## ,
297
+
298
+ E0306 : r##"
299
+ In an array literal `[x; N]`, `N` is the number of elements in the array. This
300
+ number cannot be negative.
301
+ "## ,
302
+
303
+ E0307 : r##"
304
+ The length of an array is part of its type. For this reason, this length must be
305
+ a compile-time constant.
296
306
"##
297
307
298
308
}
@@ -353,8 +363,6 @@ register_diagnostics! {
353
363
E0300 , // unexpanded macro
354
364
E0304 , // expected signed integer constant
355
365
E0305 , // expected constant
356
- E0306 , // expected positive integer for repeat count
357
- E0307 , // expected constant integer for repeat count
358
366
E0308 ,
359
367
E0309 , // thing may not live long enough
360
368
E0310 , // thing may not live long enough
You can’t perform that action at this time.
0 commit comments