about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authordswij <dharmasw@outlook.com>2025-01-31 10:47:24 +0000
committerGitHub <noreply@github.com>2025-01-31 10:47:24 +0000
commitd79f86255d278a3b4871eb0e8679d5775de78b80 (patch)
tree03667764e07f76795cec7b0d607c4edf983c54cb /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parente188c7d02928d541e92ba8dc9a500e4b8e0b6128 (diff)
parent78d6b2ea4ea69308d47e96ec1af3c54d51172c70 (diff)
downloadrust-d79f86255d278a3b4871eb0e8679d5775de78b80.tar.gz
rust-d79f86255d278a3b4871eb0e8679d5775de78b80.zip
Do not remove semicolon if it changes the block type (#14103)
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).

Fix #14100

changelog: [`unnecessary_semicolon`]: do not remove semicolon if it
could change the block type from `!` to `()`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions