Skip to content

Commit 8720a08

Browse files
committed
---
yaml --- r: 221819 b: refs/heads/auto c: 688a099 h: refs/heads/master i: 221817: dd0c333 221815: 24d0980 v: v3
1 parent 114e6f2 commit 8720a08

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
88
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
99
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1010
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
11-
refs/heads/auto: 36d852918f5de255a706667af9373edea7429d3f
11+
refs/heads/auto: 688a09910a01800bfa031892540f29bb0c3b4095
1212
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1313
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
1414
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1

branches/auto/src/librustc/diagnostics.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ fn foo(x: Option<String>) {
7272
E0003: r##"
7373
Not-a-Number (NaN) values cannot be compared for equality and hence can never
7474
match the input to a match expression. To match against NaN values, you should
75-
instead use the `is_nan()` method in a guard, like so:
75+
instead use the `is_nan()` method in a guard, like so:
7676
7777
```
7878
match number {
@@ -96,21 +96,13 @@ underscore `_` wildcard pattern can be added after all other patterns to match
9696
"anything else".
9797
"##,
9898

99-
// FIXME: Remove duplication here?
10099
E0005: r##"
101100
Patterns used to bind names must be irrefutable, that is, they must guarantee
102101
that a name will be extracted in all cases. If you encounter this error you
103102
probably need to use a `match` or `if let` to deal with the possibility of
104103
failure.
105104
"##,
106105

107-
E0006: r##"
108-
Patterns used to bind names must be irrefutable, that is, they must guarantee
109-
that a name will be extracted in all cases. If you encounter this error you
110-
probably need to use a `match` or `if let` to deal with the possibility of
111-
failure.
112-
"##,
113-
114106
E0007: r##"
115107
This error indicates that the bindings in a match arm would require a value to
116108
be moved into more than one location, thus violating unique ownership. Code like
@@ -1262,6 +1254,7 @@ contain references (with a maximum lifetime of `'a`).
12621254

12631255

12641256
register_diagnostics! {
1257+
// E0006 // merged with E0005
12651258
E0017,
12661259
E0022,
12671260
E0038,

branches/auto/src/librustc/middle/check_match.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ fn check_fn(cx: &mut MatchCheckCtxt,
10491049

10501050
for input in &decl.inputs {
10511051
is_refutable(cx, &*input.pat, |pat| {
1052-
span_err!(cx.tcx.sess, input.pat.span, E0006,
1052+
span_err!(cx.tcx.sess, input.pat.span, E0005,
10531053
"refutable pattern in function argument: `{}` not covered",
10541054
pat_to_string(pat)
10551055
);

0 commit comments

Comments
 (0)