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

Use field span in rustc_macros when emitting decode call #92011

Merged
merged 1 commit into from
Jan 3, 2022

Commits on Dec 16, 2021

  1. Use field span in rustc_macros when emitting decode call

    This will cause backtraces to point to the location of
    the field in the struct/enum, rather than the derive macro.
    
    This makes it clear which field was being decoded when the
    backtrace was captured (which is especially useful if
    there are multiple fields with the same type).
    Aaron1011 committed Dec 16, 2021
    Configuration menu
    Copy the full SHA
    44fdb98 View commit details
    Browse the repository at this point in the history