Skip to content

Architectural groundwork for expansion-time evaluation #620

Description

@tomassedovic
Metadata
Point of contact @oli-obk
Team(s) compiler, types
Goal document 2026/expansion-time-evaluation

Summary

Lay the architectural groundwork for functions that can be evaluated during macro expansion. This speculative work focuses on "queryifying" the resolver and implementing a restricted trait solver mode, enabling future language features like macro fn and compiler-integrated interop tools.

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 @tmandry
Team(s) compiler, types
Goal document 2026/expansion-time-evaluation

Summary

Lay the architectural groundwork for functions that can be evaluated during macro expansion. This speculative work focuses on "queryifying" the resolver and implementing a restricted trait solver mode, enabling future language features like macro fn and compiler-integrated interop tools.

Needs funding: This goal needs funding to proceed.

Tasks and status

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions