Skip to content

Remove ExprSlice #20160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 30, 2014
Merged

Remove ExprSlice #20160

merged 4 commits into from
Dec 30, 2014

Conversation

nrc
Copy link
Member

@nrc nrc commented Dec 23, 2014

The first six commits are from an earlier PR (#19858) and have already been reviewed. This PR makes an awful hack in the compiler to accommodate slices both natively and in the index a range form. After a snapshot we can hopefully add the new Index impls and then we can remove these awful hacks.

r? @nikomatsakis (or anyone who knows the compiler, really)

@nrc nrc force-pushed the ranges2 branch 2 times, most recently from 1c8c1e7 to d3a13f5 Compare December 23, 2014 04:26
@nikomatsakis
Copy link
Contributor

OK, everything looks reasonable enough to me. I don't quite see yet how your master plan will work, though I have an inkling, and I am nervous about commenting out random asserts in trans :), but I'll take it on faith. ;) r+ modulo nits from me.

nrc added 4 commits December 30, 2014 13:06
Note that this doesn't add the surface syntax.
[breaking-change]

The `mut` in slices is now redundant. Mutability is 'inferred' from position. This means that if mutability is only obvious from the type, you will need to use explicit calls to the slicing methods.
bors added a commit that referenced this pull request Dec 30, 2014
The first six commits are from an earlier PR (#19858) and have already been reviewed. This PR makes an awful hack in the compiler to accommodate slices both natively and in the index a range form. After a snapshot we can hopefully add the new Index impls and then we can remove these awful hacks.

r? @nikomatsakis (or anyone who knows the compiler, really)
alexcrichton added a commit to alexcrichton/rust that referenced this pull request Dec 30, 2014
The first six commits are from an earlier PR (rust-lang#19858) and have already been reviewed. This PR makes an awful hack in the compiler to accommodate slices both natively and in the index a range form. After a snapshot we can hopefully add the new Index impls and then we can remove these awful hacks.

r? @nikomatsakis (or anyone who knows the compiler, really)
@bors bors merged commit 113f8aa into rust-lang:master Dec 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants