]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #20443 : nikomatsakis/rust/autoderef-overloaded-calls, r=pcwalton
authorbors <bors@rust-lang.org>
Sun, 4 Jan 2015 16:36:41 +0000 (16:36 +0000)
committerbors <bors@rust-lang.org>
Sun, 4 Jan 2015 16:36:41 +0000 (16:36 +0000)
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

1  2 
src/librustc/middle/cfg/construct.rs
src/librustc/middle/liveness.rs
src/librustc_trans/trans/callee.rs
src/librustc_typeck/check/mod.rs

Simple merge
Simple merge
Simple merge
Simple merge