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

Track upstream proc_macro changes #90

Merged
merged 1 commit into from
May 17, 2018
Merged

Track upstream proc_macro changes #90

merged 1 commit into from
May 17, 2018

Conversation

alexcrichton
Copy link
Contributor

@alexcrichton alexcrichton commented May 16, 2018

  • Rename Term to Ident
  • Rename Punct to Op
  • Remove Term::as_str
  • Rename Op::op to Punct::as_char
  • Term::new no longer accepts lifetimes or raw idents
  • Lifetimes are lexed as a Joint ' character followed by an Ident
  • Ident::new_raw is a new procmacro2_semver_exempt API for creating raw
    identifiers.
  • {Eq,PartialEq,Ord,PartialOrd,Hash} for Ident
  • Remove Copy for Term
  • Remove Copy for Op
  • Add Extend<TokenTree> for TokenStream

@alexcrichton
Copy link
Contributor Author

cc @dtolnay

The upstream changes (rust-lang/rust#50473) just landed and this shouldn't be published until there's a new nightly

alexcrichton added a commit to alexcrichton/quote that referenced this pull request May 16, 2018
alexcrichton added a commit to alexcrichton/quote that referenced this pull request May 16, 2018
@alexcrichton
Copy link
Contributor Author

Ok I've now also added a bunch of impls for Ident, inherited from syn, which purely compares to_string output

alexcrichton added a commit to alexcrichton/syn that referenced this pull request May 16, 2018
* Rename `Term` to `Ident`
* Rename `Punct` to `Op`
* Remove `Term::as_str`
* Rename `Op::op` to `Punct::as_char`
* `Term::new` no longer accepts lifetimes or raw idents
* Lifetimes are lexed as a `Joint` `'` character followed by an `Ident`
* `Ident::new_raw` is a new `procmacro2_semver_exempt` API for creating raw
  identifiers.
alexcrichton added a commit to alexcrichton/quote that referenced this pull request May 16, 2018
alexcrichton added a commit to alexcrichton/syn that referenced this pull request May 16, 2018
@SergioBenitez
Copy link
Contributor

These changes have now landed in nightly. New versions should be released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants