diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2025-03-28 22:03:26 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2025-03-28 22:30:09 +0100 |
| commit | 432a8a7a7cbf057e481e698f4478be1006612b03 (patch) | |
| tree | b8f60ac6cce812b1eed31a6a0849932812236308 /tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | d78622eeb82975e51d72111fd4ccb7d8a67ec2f1 (diff) | |
| download | rust-432a8a7a7cbf057e481e698f4478be1006612b03.tar.gz rust-432a8a7a7cbf057e481e698f4478be1006612b03.zip | |
Properly handle expansion in `single_match`
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.
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
