Skip to content

Fixes unreachable! calls in Rust 1.59+#21

Merged
zslayton merged 1 commit intomasterfrom
fix-unreachable-calls
Mar 2, 2022
Merged

Fixes unreachable! calls in Rust 1.59+#21
zslayton merged 1 commit intomasterfrom
fix-unreachable-calls

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