Skip to content

Tracking Issue for Field Projections #145383

@BennoLossin

Description

@BennoLossin

This is a tracking issue for work on Field Projections.
The feature gate for the issue is #![feature(field_projections)].

About tracking issues

Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Discussion comments will get marked as off-topic or deleted.
Repeated discussions on the tracking issue may lead to the tracking issue getting locked.

Steps

  • Approve as lang experiment
    • We accepted this experiment in the 2025-08-13 lang design meeting.
  • implement field projections. design according to the section "the current approach" in the design meeting document from 2025-08-13:
    • add field reflection via field representing types and Field trait
    • add projection traits & implementations on std types
    • add new operator & syntax
    • implement the borrow check for the projections
  • coordinate with t-libs-api to create {Arc,Rc}Ref<T>
  • experiment with allowing overlapping implementations of &T and &Custom<U> using compiler magic

Unresolved Questions

TODO.

Implementation history

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-experimentalBlocker: In-tree experiment; RFC pending, not yet approved or unneeded (requires FCP to stabilize).C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCF-field_projections`#![feature(field_projections)]`T-langRelevant to the language team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions