Skip to content

Commit 19adffa

Browse files
---
yaml --- r: 229299 b: refs/heads/try c: 4840c13 h: refs/heads/master i: 229297: 052196b 229295: 3df7705 v: v3
1 parent 5cd05a7 commit 19adffa

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: 59574759a817e55722a2c998853bd9d4eec65552
4+
refs/heads/try: 4840c13f1ae38a6d6b2c3068a7a066ea4af30b11
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/librustc_resolve/diagnostics.rs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,22 @@ let Foo = 12i32; // ok!
457457
The goal here is to avoid a conflict of names.
458458
"##,
459459

460+
E0415: r##"
461+
More than one parameter have the same name. Example of erroneous
462+
code:
463+
464+
```
465+
fn foo(f: i32, f: i32) {} // error: identifier `f` is bound more than
466+
// once in this parameter list
467+
```
468+
469+
Please verify you didn't misspell parameters' name. Example:
470+
471+
```
472+
fn foo(f: i32, g: i32) {} // ok!
473+
```
474+
"##,
475+
460476
E0417: r##"
461477
A static variable was referenced in a pattern. Example of erroneous code:
462478
@@ -780,7 +796,6 @@ register_diagnostics! {
780796
E0410, // variable from pattern is not bound in pattern 1
781797
E0411, // use of `Self` outside of an impl or trait
782798
E0414, // only irrefutable patterns allowed here
783-
E0415, // identifier is bound more than once in this parameter list
784799
E0416, // identifier is bound more than once in the same pattern
785800
E0418, // is not an enum variant, struct or const
786801
E0420, // is not an associated const

0 commit comments

Comments
 (0)