-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Tracking Issue for proc_macro::Span::{start, end} #87552
Copy link
Copy link
Closed
Labels
A-proc-macrosArea: Procedural macrosArea: Procedural macrosC-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 RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-proc-macrosArea: Procedural macrosArea: Procedural macrosC-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 RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Feature gate:
#![feature(proc_macro_span_shrink)]This feature adds
span.start()andspan.end()which give empty spans right at the start and end of the span. (Just likeshrink_to_lo()andshrink_to_hi()inside rustc.)Public API
Steps / History
startandend: Implement proposed API forproc_macro_span#111571proc_macro::Spaninspection APIs #54725Unresolved Questions