kyren / gc-arena

Incremental garbage collection from safe Rust
Creative Commons Zero v1.0 Universal
436 stars 36 forks source link

Use elided lifetimes instead of `'gc` for the short form of `Rootable!` #71

Closed moulins closed 1 year ago

moulins commented 1 year ago

This allows using the short form even when a 'gc lifetime is already in scope.

For ease of future maintenance, the lifetime substitution is done by a procedural macro instead of a recursive tt-muncher.

kyren commented 1 year ago

LGTM! I am soooo tired of typing the full Rootable! incantation, and this makes it a lot clearer to me and less visually noisy too.