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

Consistently use quote! when emitting 'source' #121

Merged
merged 1 commit into from Feb 19, 2021

Commits on Feb 18, 2021

  1. Consistently use quote! when emitting 'source'

    When a macro generates part of the derive input, the call-site hygiene
    may be different than the hygiene of a field. Therefore, we need to
    be sure to use the same hygiene information for any identifiers we
    generate, instead of relying on the hygiene from a particular span
    via `quote_spanned!`
    Aaron1011 committed Feb 18, 2021
    Copy the full SHA
    0fa679b View commit details
    Browse the repository at this point in the history