Skip to content
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

Autoderef calls #20443

Merged
merged 1 commit into from
Jan 4, 2015
Merged

Conversation

nikomatsakis
Copy link
Contributor

Use autoderef for call notation. This is consistent in that we now autoderef all postfix operators (., [], and ()). It also means you can call closures without writing (*f)(). Note that this is rebased atop the rollup, so only the final commit is relevant.

r? @pcwalton

@alexcrichton
Copy link
Member

Needs a rebase

@nikomatsakis nikomatsakis force-pushed the autoderef-overloaded-calls branch from 02f9705 to 5bfd4e3 Compare January 3, 2015 00:48
@nikomatsakis nikomatsakis force-pushed the autoderef-overloaded-calls branch from 5bfd4e3 to dc97247 Compare January 3, 2015 01:59
@nikomatsakis
Copy link
Contributor Author

Giving high priority because this is a big convenience that will aid @japaric in removing boxed closures.

bors added a commit that referenced this pull request Jan 4, 2015
…r=pcwalton

Use autoderef for call notation. This is consistent in that we now autoderef all postfix operators (`.`, `[]`, and `()`). It also means you can call closures without writing `(*f)()`. Note that this is rebased atop the rollup, so only the final commit is relevant.

r? @pcwalton
@bors bors merged commit dc97247 into rust-lang:master Jan 4, 2015
@nikomatsakis nikomatsakis deleted the autoderef-overloaded-calls branch March 30, 2016 16:12
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.

4 participants