diff options
author | Philip Herron <philip.herron@embecosm.com> | 2021-06-23 17:22:12 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2021-06-24 12:36:08 +0100 |
commit | 92a434a33904608f5659cf7b5d4df3d2a99bd5bd (patch) | |
tree | 02daa3d23d04cb9c950b15d5a7a94f171e1241db /gcc/rust/backend/rust-compile-expr.h | |
parent | 23e748d7a6855ce132299cfef9692ee9c681de59 (diff) | |
download | gcc-92a434a33904608f5659cf7b5d4df3d2a99bd5bd.zip gcc-92a434a33904608f5659cf7b5d4df3d2a99bd5bd.tar.gz gcc-92a434a33904608f5659cf7b5d4df3d2a99bd5bd.tar.bz2 |
Add support for nested functions
We missed that stmts in rust can be items like functions. This adds support
for resolution and compilation of nested functions. Rust allows nested
functions which are distinct to closures. Nested functions are not allowed
to encapsulate the enclosing scope so they can be extracted as normal functions.
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
0 files changed, 0 insertions, 0 deletions