about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-01-29 19:02:18 +0100
committerSamuel Tardieu <sam@rfc1149.net>2025-01-29 23:01:08 +0100
commit78d6b2ea4ea69308d47e96ec1af3c54d51172c70 (patch)
tree231f6e190b41f990b9a7d8857272af0bf698b457 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parente02c8857e83e9113c29e8bd2b429f62dfaba04a7 (diff)
downloadrust-78d6b2ea4ea69308d47e96ec1af3c54d51172c70.tar.gz
rust-78d6b2ea4ea69308d47e96ec1af3c54d51172c70.zip
Do not remove semicolon if it changes the block type
Removing the semicolon of the last statement of an expressionless block
may change the block type even if the statement's type is `()`. If the
block type is `!` because of a systematic early return, typing it as
`()` may make it incompatible with the expected type for the block (to
which `!` is cast).
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions