Skip to content

Commit 3383ddc

Browse files
lambda-fairysteveklabnik
authored andcommitted
---
yaml --- r: 209500 b: refs/heads/try c: 0e4a77b h: refs/heads/master v: v3
1 parent 2a0a871 commit 3383ddc

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
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: 77e8ddfaf342a94a7d3c3167c31199bf26b04f1f
5+
refs/heads/try: 0e4a77bbfeb56e715ffdc5419247c46f22ff1ffa
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: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,16 @@ match Some(5) {
293293
}
294294
295295
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.
296306
"##
297307

298308
}
@@ -353,8 +363,6 @@ register_diagnostics! {
353363
E0300, // unexpanded macro
354364
E0304, // expected signed integer constant
355365
E0305, // expected constant
356-
E0306, // expected positive integer for repeat count
357-
E0307, // expected constant integer for repeat count
358366
E0308,
359367
E0309, // thing may not live long enough
360368
E0310, // thing may not live long enough

0 commit comments

Comments
 (0)