Files
rust/tests/ui
Manish Goregaokar 7d3d824d64 Properly handle expansion in single_match (#14495)
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
2025-03-31 16:42:36 +00:00
..
2025-03-25 10:37:04 -04:00
2025-03-25 10:37:04 -04:00
2025-02-15 13:38:42 +01:00
2025-02-15 13:38:42 +01:00
2025-02-15 13:38:42 +01:00
2025-02-15 13:38:42 +01:00
2025-02-15 13:38:42 +01:00
2025-02-15 13:38:42 +01:00
2025-02-15 13:38:42 +01:00
2025-03-20 21:02:35 -04:00
2025-02-15 13:38:42 +01:00
2025-03-25 10:37:04 -04:00
2025-03-25 10:37:04 -04:00
2025-03-25 10:37:04 -04:00
2025-02-15 13:38:42 +01:00
2025-03-25 10:49:14 -04:00
2025-03-25 10:49:14 -04:00
2025-03-25 10:49:14 -04:00
2025-02-15 13:38:42 +01:00
2025-02-15 13:38:43 +01:00
2025-03-25 10:49:14 -04:00
2025-03-25 10:49:14 -04:00
2025-02-15 13:38:42 +01:00
2025-02-15 13:38:42 +01:00
2025-03-02 15:50:13 +01:00
2025-02-15 13:38:42 +01:00
2025-02-15 13:38:42 +01:00
2025-02-15 13:38:42 +01:00
2025-02-15 13:38:42 +01:00
2025-02-15 13:38:42 +01:00
2025-02-15 13:38:42 +01:00
2025-02-15 13:38:42 +01:00
2025-03-25 10:37:04 -04:00
2025-03-25 10:49:14 -04:00
2025-03-25 10:49:14 -04:00
2025-03-25 10:49:14 -04:00
2025-02-15 13:38:42 +01:00
2025-02-15 13:38:42 +01:00