Skip to content

xtask: improved error output for "wrong" repr #1742

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
Aug 16, 2025

Conversation

phip1611
Copy link
Member

Uncontroversial part from #1741

Checklist

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

This helps to better understand why something fails.
@phip1611 phip1611 force-pushed the improve-cargo-xtask-v2 branch from f882a9d to b5919ff Compare August 16, 2025 11:42
"forbidden use of enum; use the `newtype_enum!` macro instead"
),
Self::ForbiddenItemKind(_) => write!(f, "forbidden type of item"),
Self::ForbiddenRepr(reprs) => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all arms are the same as before, except for this arm

@nicholasbishop nicholasbishop added this pull request to the merge queue Aug 16, 2025
Merged via the queue into main with commit c5bf934 Aug 16, 2025
20 checks passed
@nicholasbishop nicholasbishop deleted the improve-cargo-xtask-v2 branch August 16, 2025 17:20
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