about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2025-03-31 16:42:36 +0000
committerGitHub <noreply@github.com>2025-03-31 16:42:36 +0000
commit7d3d824d648e80023c0245f55afdc66d5f51a821 (patch)
treeae7d4e8f3b9e44deb336487106b132b5d0078ad1 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent1e78abca676460c0ac3c57b9230c104c5d90e3ee (diff)
parent432a8a7a7cbf057e481e698f4478be1006612b03 (diff)
downloadrust-7d3d824d648e80023c0245f55afdc66d5f51a821.tar.gz
rust-7d3d824d648e80023c0245f55afdc66d5f51a821.zip
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
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions