Skip to content

Conversation

@Manishearth
Copy link
Member

@Manishearth Manishearth commented Oct 14, 2025

@Manishearth Manishearth merged commit b3e9ef6 into unicode-org:main Oct 14, 2025
31 checks passed
Copy link
Member

@robertbastian robertbastian left a comment

Choose a reason for hiding this comment

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

I don't know what the point of this is, I'd rather have a bug than a panic. It's enough to claim that this is unreachable, we don't have to generate the panic code.

@Manishearth
Copy link
Member Author

I also feel this isn't something we need to do, but a debug assertion here is fine imo.

@sffc
Copy link
Member

sffc commented Oct 18, 2025

We don't generate panic code in release mode, only in debug mode. We apply this pattern in dozens of other places and it is consistent with our style guide.

@Manishearth Manishearth deleted the dbg-unreachable branch October 18, 2025 02:23
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.

3 participants