Skip to content

uefi-macros: Use a more precise error span #679

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

Merged
merged 1 commit into from
Mar 5, 2023

Conversation

nicholasbishop
Copy link
Member

When the macro produces an error due to unnamed arguments, point precisely at the _ part of the argument, rather than the whole argument including the type.

Checklist

  • Sensible git history (for example, squash "typo" or "fix" commits). See the Rewriting History guide for help.
  • Update the changelog (if necessary)

When the macro produces an error due to unnamed arguments, point precisely at
the `_` part of the argument, rather than the whole argument including the type.
@phip1611 phip1611 merged commit 0606b0e into rust-osdev:main Mar 5, 2023
@nicholasbishop nicholasbishop deleted the bishop-better-span branch March 5, 2023 15:56
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.

2 participants