about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorQuinn Sinclair <me@partiallytyped.dev>2024-01-30 21:41:26 +0100
committerQuinn Sinclair <me@partiallytyped.dev>2024-02-01 17:05:12 +0100
commitfe8c2e24bd5697d7bf4f0b55bf2e88aa9096d4bb (patch)
tree5781dc4e23df0b1408bee5cf668c89c9343413c2 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent99423e8b30a5837adec3b987beb2099b432af007 (diff)
downloadrust-fe8c2e24bd5697d7bf4f0b55bf2e88aa9096d4bb.tar.gz
rust-fe8c2e24bd5697d7bf4f0b55bf2e88aa9096d4bb.zip
Fixed FP in `unused_io_amount` for `Ok(lit)`, `unrachable!`
We introduce the following rules for match exprs.
- `panic!` and `unreachable!` are treated as consumption.
- guard expressions in any arm imply consumption.

For match exprs:
- Lint only if exacrtly 2 non-consuming arms exist
- Lint only if one arm is an `Ok(_)` and the other is `Err(_)`

Added additional requirement that for a block return expression
that is a match, the source must be `Normal`.

changelog: FP [`unused_io_amount`] when matching Ok(literal)
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions