diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2014-10-08 21:28:50 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2014-10-08 22:41:23 -0700 |
| commit | 14988141952e29e1d46396e99cf286cd7aa9ee95 (patch) | |
| tree | 7974b322e0bdaebddc27773ac1382c80a21ce091 /src/rustllvm/RustWrapper.cpp | |
| parent | 63fe80e1ffd036e99e1c707116774ac10203e2f1 (diff) | |
| download | rust-14988141952e29e1d46396e99cf286cd7aa9ee95.tar.gz rust-14988141952e29e1d46396e99cf286cd7aa9ee95.zip | |
librustc: Forbid duplicate name bindings in the same parameter or type
parameter list.
This breaks code like:
fn f(a: int, a: int) { ... }
fn g<T,T>(a: T) { ... }
Change this code to not use the same name for a parameter. For example:
fn f(a: int, b: int) { ... }
fn g<T,U>(a: T) { ... }
Code like this is *not* affected, since `_` is not an identifier:
fn f(_: int, _: int) { ... } // OK
Closes #17568.
[breaking-change]
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
