Skip to content

Tracking Issue for implementation of Extend parameterized over "token tree items" (Group, Literal, Punct, Ident) for TokenStream #112815

Open
@JohnScience

Description

@JohnScience

Feature gate: #![feature(ts_extend_w_tt_item)]

This is a tracking issue for implementation of Extend parameterized over "token tree items" (Group, Literal, Punct, Ident) for TokenStream as proposed by this API Change Proposal (ACP).

In this context, "token tree item" is a stipulative definition that means any of the types that can be stored as variants inside of proc_macro::TokenTree, namely

  1. proc_macro::Group
  2. proc_macro::Ident
  3. proc_macro::Punct
  4. proc_macro::Literal

Public API

// proc_macro

impl Extend<Group> for TokenStream {
  /*...*/
}

impl Extend<Ident> for TokenStream {
   /*...*/
}

impl Extend<Punct> for TokenStream {
   /*...*/
}

impl Extend<Literal> for TokenStream {
   /*...*/
}

Steps / History

  • Implementation: #...
  • Final comment period (FCP)1
  • Stabilization PR

Unresolved Questions

  • None yet.

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-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