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

invoke the unreachable intrinsic, not the stable wrapper #496

Merged
merged 1 commit into from
Oct 10, 2022

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented Oct 9, 2022

Works around #491: hint::unreachable_unchecked would like to trigger a panic in debug builds, but that would involve non-inline functions, so we cannot use it from compiler_builtins any more.

@RalfJung
Copy link
Member Author

RalfJung commented Oct 9, 2022

Clippy fails, but that is not caused by my changes.

@Amanieu
Copy link
Member

Amanieu commented Oct 10, 2022

Clippy is fixed by #498.

@RalfJung
Copy link
Member Author

Thanks - I rebased, hopefully CI passes now.

@Amanieu Amanieu merged commit a85d17e into rust-lang:master Oct 10, 2022
@RalfJung RalfJung deleted the unreachable branch October 10, 2022 18:08
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