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

Fixes unreachable! calls in Rust 1.59+ #21

Merged
merged 1 commit into from
Mar 2, 2022
Merged

Conversation

zslayton
Copy link
Contributor

@zslayton zslayton commented Mar 2, 2022

Starting in Rust 1.59, calls to the unreachable! macro no longer
accept string variables as their first parameter. This brings their
behavior in line with macros like println!, format!, and write!.

See: rust-lang/rust#94475

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Starting in Rust 1.59, calls to the `unreachable!` macro no longer
accept string variables as their first parameter. This brings their
behavior in line with macros like `println!`, `format!`, and `write!`.

See: rust-lang/rust#94475
@zslayton zslayton requested a review from desaikd March 2, 2022 18:20
@zslayton zslayton merged commit 295921f into master Mar 2, 2022
@zslayton zslayton deleted the fix-unreachable-calls branch March 2, 2022 18:26
@camerondurham camerondurham mentioned this pull request Mar 3, 2022
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