Skip to content

Tracking Issue for proc_macro::Span::{start, end} #87552

Closed
@m-ou-se

Description

@m-ou-se

Feature gate: #![feature(proc_macro_span_shrink)]

This feature adds span.start() and span.end() which give empty spans right at the start and end of the span. (Just like shrink_to_lo() and shrink_to_hi() inside rustc.)

Public API

// proc_macro

impl Span {
     pub fn start(&self) -> Span;
     pub fn end(&self) -> Span;
}

Steps / History

Unresolved Questions

  • None yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-proc-macrosArea: Procedural macrosC-tracking-issueCategory: 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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions