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

Move jointness censoring to proc_macro #76285

Merged
merged 2 commits into from
Sep 5, 2020
Merged

Commits on Sep 3, 2020

  1. Move jointness censoring to proc_macro

    Proc-macro API currently exposes jointness in `Punct` tokens. That is,
    `+` in `+one` is **non** joint.
    
    Our lexer produces jointness info for all tokens, so we need to censor
    it *somewhere*
    
    Previously we did this in a lexer, but it makes more sense to do this
    in a proc-macro server.
    matklad committed Sep 3, 2020
    Configuration menu
    Copy the full SHA
    850c321 View commit details
    Browse the repository at this point in the history
  2. Optimize Cursor::look_ahead

    Cloning a tt is cheap, but not free (there's Arc inside).
    matklad committed Sep 3, 2020
    Configuration menu
    Copy the full SHA
    09d3db2 View commit details
    Browse the repository at this point in the history