about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-03-28 22:03:26 +0100
committerSamuel Tardieu <sam@rfc1149.net>2025-03-28 22:30:09 +0100
commit432a8a7a7cbf057e481e698f4478be1006612b03 (patch)
treeb8f60ac6cce812b1eed31a6a0849932812236308 /tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parentd78622eeb82975e51d72111fd4ccb7d8a67ec2f1 (diff)
downloadrust-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