about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2014-09-05 21:27:47 -0700
committerPatrick Walton <pcwalton@mimiga.net>2014-09-18 16:31:58 -0700
commit7c00d77e8bd18d2e1873e8e995885b3500a88a0d (patch)
tree21d5a718a9a40ed6920463b2348a0788fadebc2c /src/rustllvm/RustWrapper.cpp
parent9c41064308806907067a1bc5f6f9138c29310221 (diff)
downloadrust-7c00d77e8bd18d2e1873e8e995885b3500a88a0d.tar.gz
rust-7c00d77e8bd18d2e1873e8e995885b3500a88a0d.zip
librustc: Implement the syntax in the RFC for unboxed closure sugar.
Part of issue #16640. I am leaving this issue open to handle parsing of
higher-rank lifetimes in traits.

This change breaks code that used unboxed closures:

* Instead of `F:|&: int| -> int`, write `F:Fn(int) -> int`.

* Instead of `F:|&mut: int| -> int`, write `F:FnMut(int) -> int`.

* Instead of `F:|: int| -> int`, write `F:FnOnce(int) -> int`.

[breaking-change]
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions