Uh oh!
There was an error while loading. Please reload this page.
Remove ExplicitSelf from HIR - #33505
Conversation
eddyb
commented
May 9, 2016
LGTM, cc @nrc, @Manishearth, @jseyfried |
nrc
commented
May 9, 2016
I think this is good. Question (more important for an AST change than the HIR): can we tell the difference between |
petrochenkov
commented
May 9, 2016
Yes, |
nrc
commented
May 9, 2016
@petrochenkov hmm, that seems fine for the HIR, but not ideal for the AST. We should maybe try something else there. |
petrochenkov
commented
May 9, 2016
Hm, with this PR |
nrc
commented
May 9, 2016
This feels like something which should be caught and reported during lowering, rather than being stored in the HIR (to clarify, I think we should catch this before landing this PR). |
bors
commented
May 10, 2016
☔ The latest upstream changes (presumably #33443) made this pull request unmergeable. Please resolve the merge conflicts. |
petrochenkov
commented
May 10, 2016
I've added a special check for |
bors
commented
May 11, 2016
☔ The latest upstream changes (presumably #33425) made this pull request unmergeable. Please resolve the merge conflicts. |
petrochenkov
commented
May 11, 2016
Rebased. |
petrochenkov
commented
May 13, 2016
nrc
commented
May 14, 2016
r? nrc |
bors
commented
May 14, 2016
☔ The latest upstream changes (presumably #33532) made this pull request unmergeable. Please resolve the merge conflicts. |
Fix spans and expected token lists, fixrust-lang#33413 + other cosmetic improvements Add test for rust-lang#33413 Convert between `Arg` and `ExplicitSelf` precisely Simplify pretty-printing for methods
petrochenkov
commented
May 14, 2016
Rebased. |
nrc
commented
May 15, 2016
@bors: r+ |
bors
commented
May 15, 2016
📌 Commit a62a690 has been approved by |
nrc
commented
May 15, 2016
@bors: r- (Whoops, wrong PR) |
| /// `self`, `mut self` | ||
| Value(Ident), | ||
| /// `&'lt self`, `&'lt mut self` | ||
| Region(Option<Lifetime>, Mutability, Ident), |
There was a problem hiding this comment.
Borrowed is better than Region, I think
nrc
commented
May 15, 2016
@bors: r+ |
bors
commented
May 15, 2016
📌 Commit a62a690 has been approved by |
bors
commented
May 16, 2016
Remove ExplicitSelf from HIR `self` argument is already kept in the argument list and can be retrieved from there if necessary, so there's no need for the duplication. The same changes can be applied to AST, I'll make them in the next breaking batch. The first commit also improves parsing of method declarations and fixes#33413. r? @eddyb
bors
commented
May 16, 2016
Seems like this PR broke my compiler plugin. Can't you please help to fix it? UPD: problem solved (see topic) |
The AST part of rust-lang#33505. rust-lang#33505 isn't landed yet, so this PR is based on top of it. r? @nrc plugin-[breaking-change] cc rust-lang#31645@Manishearth
The AST part of rust-lang#33505. rust-lang#33505 isn't landed yet, so this PR is based on top of it. r? @nrc plugin-[breaking-change] cc rust-lang#31645@Manishearth
selfargument is already kept in the argument list and can be retrieved from there if necessary, so there's no need for the duplication.The same changes can be applied to AST, I'll make them in the next breaking batch.
The first commit also improves parsing of method declarations and fixes#33413.
r? @eddyb