Skip to content

Explicit tail calls & loop_match #634

Description

@tomassedovic
Metadata
Point of contact @folkertdev
Team(s) compiler, lang
Goal document 2026/tail-call-loop-match

Summary

It is important that rust generates efficient code. Guaranteed tail calls, goto and computed goto are techniques used in systems programming to squeeze out the last bit of performance. Rust should have these abilities.

Tasks and status


Note: we have updated the body to match the 2026 goal. Your original text is preserved below.

Details

Metadata
Point of contact @folkertdev
Team(s) compiler, lang
Goal document 2026/tail-call-loop-match

Summary

It is important that rust generates efficient code. Guaranteed tail calls, goto and computed goto are techniques used in systems programming to squeeze out the last bit of performance. Rust should have these abilities.

Tasks and status

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions