Closed
Description
The behavior of unreachable
does not depend the edition of the crate that invoked the macro. That's fine for todo!()
and unimplemented!()
due to the way they are implemented, but in #92068, it was discovered that unreachable!()
behaves subtly different, due to the way it has a special one-argument case. Looks like missed this when working on the 2021 panic macros. :(
Metadata
Metadata
Assignees
Labels
Area: The 2021 editionArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Category: This is a bug.High priorityRelevant to the library API team, which will review and decide on the PR/issue.This issue / PR is in PFCP or FCP with a disposition to merge it.The final comment period is finished for this PR / Issue.Marks issues that should be documented in the release notes of the next release.