diff options
| author | bors <bors@rust-lang.org> | 2014-10-09 16:57:03 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-10-09 16:57:03 +0000 |
| commit | eb04229f7a8c12924b3b6357c42961c96f821423 (patch) | |
| tree | 003ba72eb2d83f6dbca155e05c97d2dc8a4630b2 /src/rustllvm/RustWrapper.cpp | |
| parent | 158eaa643b96f474c6aeb11a94d6ba444c1f3867 (diff) | |
| parent | 14988141952e29e1d46396e99cf286cd7aa9ee95 (diff) | |
| download | rust-eb04229f7a8c12924b3b6357c42961c96f821423.tar.gz rust-eb04229f7a8c12924b3b6357c42961c96f821423.zip | |
auto merge of #17880 : pcwalton/rust/duplicate-bindings-in-parameter-list, r=alexcrichton
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.
r? @alexcrichton
[breaking-change]
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
