mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
7d3d824d64
Having a macro call as the scrutinee is supported. However, the proposed suggestion must use the macro call itself, not its expansion. When the scrutinee is a macro call, do not complain about an irrefutable match, as the user may not be aware of the result of the macro. A comparaison will be suggested instead, as if we couldn't see the outcome of the macro. Similarly, do not accept macro calls as arm patterns. changelog: [`single_match`]: proper suggestions in presence of macros Fixes #14493