diff options
| author | bors <bors@rust-lang.org> | 2016-09-23 09:49:26 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-23 09:49:26 -0700 |
| commit | cb1b1eef8d7f2fc934bf99201421b81b3d7fba99 (patch) | |
| tree | 4ab3e5cf9507ab490aa3060da6aae89e6d79df48 /src/rustllvm/RustWrapper.cpp | |
| parent | 86a686c4f71d208ecf8f7ee5a035b17a545d8b62 (diff) | |
| parent | 795b6adc9adc171900fdcae2f1a73c27bc2f7dc2 (diff) | |
| download | rust-cb1b1eef8d7f2fc934bf99201421b81b3d7fba99.tar.gz rust-cb1b1eef8d7f2fc934bf99201421b81b3d7fba99.zip | |
Auto merge of #36649 - eddyb:selfish-idents, r=pnkfelix
Don't let a type parameter named "Self" unchanged past HIR lowering.
Fixes #36638 by rewriting `Self` type parameters (which are a parse error) to a `gensym("Self")`.
Background: #35605 introduced code across rustc that determines `Self` by its keyword name.
Reverting the sanity checks around that would inadvertently cause confusion between the true `Self` of a `trait` and other type parameters named `Self` (which have caused parse errors already).
I do not like to use `gensym`, and we may do something different here in the future, but this should work.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
