-
-
Notifications
You must be signed in to change notification settings - Fork 16.6k
Tracking Issue for builtin # syntax #110680
Copy link
Copy link
Open
Labels
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 RFCS-tracking-perma-unstableStatus: The feature will stay unstable indefinitely.Status: The feature will stay unstable indefinitely.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Activity
Metadata
Metadata
Assignees
Labels
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 RFCS-tracking-perma-unstableStatus: The feature will stay unstable indefinitely.Status: The feature will stay unstable indefinitely.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
This is a tracking issue for the MCP to add
builtin #syntax, see rust-lang/compiler-team#580 as well as the zulip stream.The feature gate for the issue is
#![feature(builtin_syntax)].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.
Steps
builtin #syntax: Implement builtin # syntax and use it for offset_of!(...) #110694builtin #syntax in the qualifying places:offset_of!: Implement builtin # syntax and use it for offset_of!(...) #110694type_ascribe!: Maketype_ascribe!not a built-in #122806deref!(PAT)Implement macro-based deref!() syntax for deref patterns #122793asm!/global_asm!format_args!builtin #. In any way, stabilization is specific to each feature that usesbuiltin #.Unresolved Questions
The MCP lists a few potential use cases for
builtin #, but the list is not final (and probably will keep changing).Implementation history