Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks
JohnScience opened this issue Jun 19, 2023 · 0 comments
Labels
C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Comments

@JohnScience
Copy link
Contributor

JohnScience commented Jun 19, 2023

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

@JohnScience JohnScience added C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. labels Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

1 participant