Hi,
My name is Janet, and my GSoC project is about implementing Rust Drop
trait support in gccrs, the Rust frontend for GCC.
Here is my latest status report for the project.
Current status:
Since my last report, I have pushed the following patches:
1. Refactor the Drop infrastructure (CompileDrop / DropBuilder)
Merged:
https://github.com/Rust-GCC/gccrs/pull/4586
2. Add support for function-scope drops
Under review:
https://github.com/Rust-GCC/gccrs/pull/4591
3. Add support for explicit-return cases
Under review:
https://github.com/Rust-GCC/gccrs/pull/4621
4. Add test cases for non-unit tail expressions
Under review:
https://github.com/Rust-GCC/gccrs/pull/4602
5. Add test cases for LIFO Drop order and nested scopes
Merged:
https://github.com/Rust-GCC/gccrs/pull/4632
Next steps:
- Continue updating the existing patches based on review feedback.
- Work on try/finally-based cleanup support using the GCC Go frontend's
defer implementation as a reference. This should avoid the need to
emit Drop calls manually at every exit point.
Janet