about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-02-06 15:37:41 +0100
committerGitHub <noreply@github.com>2020-02-06 15:37:41 +0100
commit424304a14f3d4dd8508006ab349b39b983342cf1 (patch)
tree66048d880cc797b7c65801e8c4127a6fd69fd725 /src/rustllvm/RustWrapper.cpp
parentbf13861e6cebfedef6d996037bf09babf9dcb600 (diff)
parent9a4eac3944e2e2668b4aea0b5afd3d83b88e992e (diff)
downloadrust-424304a14f3d4dd8508006ab349b39b983342cf1.tar.gz
rust-424304a14f3d4dd8508006ab349b39b983342cf1.zip
Rollup merge of #68788 - Centril:unified-fn-bodies, r=petrochenkov
Towards unified `fn` grammar

Part of https://github.com/rust-lang/rust/pull/68728.

- Syntactically, `fn` items in `extern { ... }` blocks can now have bodies (`fn foo() { ... }` as opposed to `fn foo();`). As above, we use semantic restrictions instead.

- Syntactically, `fn` items in free contexts (directly in a file or a module) can now be without bodies (`fn foo();` as opposed to `fn foo() { ... }`. As above, we use semantic restrictions instead, including for non-ident parameter patterns.

- We move towards unifying the `fn` front matter; this is fully realized in https://github.com/rust-lang/rust/pull/68728.

r? @petrochenkov
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions