diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2025-03-31 16:42:36 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-31 16:42:36 +0000 |
| commit | 7d3d824d648e80023c0245f55afdc66d5f51a821 (patch) | |
| tree | ae7d4e8f3b9e44deb336487106b132b5d0078ad1 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | 1e78abca676460c0ac3c57b9230c104c5d90e3ee (diff) | |
| parent | 432a8a7a7cbf057e481e698f4478be1006612b03 (diff) | |
| download | rust-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
