File tree Expand file tree Collapse file tree 3 files changed +4
-11
lines changed
branches/stable/src/librustc Expand file tree Collapse file tree 3 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ refs/heads/tmp: afae2ff723393b3ab4ccffef6ac7c6d1809e2da0
29
29
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
30
30
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
31
31
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32
- refs/heads/stable: 36d852918f5de255a706667af9373edea7429d3f
32
+ refs/heads/stable: 688a09910a01800bfa031892540f29bb0c3b4095
33
33
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
34
34
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
35
35
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ fn foo(x: Option<String>) {
72
72
E0003 : r##"
73
73
Not-a-Number (NaN) values cannot be compared for equality and hence can never
74
74
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:
76
76
77
77
```
78
78
match number {
@@ -96,21 +96,13 @@ underscore `_` wildcard pattern can be added after all other patterns to match
96
96
"anything else".
97
97
"## ,
98
98
99
- // FIXME: Remove duplication here?
100
99
E0005 : r##"
101
100
Patterns used to bind names must be irrefutable, that is, they must guarantee
102
101
that a name will be extracted in all cases. If you encounter this error you
103
102
probably need to use a `match` or `if let` to deal with the possibility of
104
103
failure.
105
104
"## ,
106
105
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
-
114
106
E0007 : r##"
115
107
This error indicates that the bindings in a match arm would require a value to
116
108
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`).
1262
1254
1263
1255
1264
1256
register_diagnostics ! {
1257
+ // E0006 // merged with E0005
1265
1258
E0017 ,
1266
1259
E0022 ,
1267
1260
E0038 ,
Original file line number Diff line number Diff line change @@ -1049,7 +1049,7 @@ fn check_fn(cx: &mut MatchCheckCtxt,
1049
1049
1050
1050
for input in & decl. inputs {
1051
1051
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 ,
1053
1053
"refutable pattern in function argument: `{}` not covered" ,
1054
1054
pat_to_string( pat)
1055
1055
) ;
You can’t perform that action at this time.
0 commit comments