Skip to content

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.

4 participants