-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
B-experimentalBlocker: In-tree experiment; RFC pending, not yet approved or unneeded (requires FCP to stabilize).Blocker: 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 RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-field_projections`#![feature(field_projections)]``#![feature(field_projections)]`T-langRelevant to the language teamRelevant to the language team
Description
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
- add field reflection via field representing types and
- 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
Labels
B-experimentalBlocker: In-tree experiment; RFC pending, not yet approved or unneeded (requires FCP to stabilize).Blocker: 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 RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-field_projections`#![feature(field_projections)]``#![feature(field_projections)]`T-langRelevant to the language teamRelevant to the language team