about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-02-02 19:43:01 +0000
committerbors <bors@rust-lang.org>2024-02-02 19:43:01 +0000
commit9b6f86643fb4d71d4813c7233b8d3af349ca16cc (patch)
tree26770d406bf7dd51cd217fac4e291e4c0eef4c21 /compiler/rustc_llvm/llvm-wrapper
parentb58b88c966c6c355e02131fcd4e21837b34227b2 (diff)
parentfe8c2e24bd5697d7bf4f0b55bf2e88aa9096d4bb (diff)
downloadrust-9b6f86643fb4d71d4813c7233b8d3af349ca16cc.tar.gz
rust-9b6f86643fb4d71d4813c7233b8d3af349ca16cc.zip
Auto merge of #12217 - PartiallyTyped:12208, r=blyxyas
Fixed FP in `unused_io_amount` for Ok(lit), unrachable! and unwrap de…

…sugar

Fixes fp caused by linting on Ok(_) for all cases outside binding.

We introduce the following rules for match exprs.
- `panic!` and `unreachable!` are treated as consumed.
- `Ok( )` patterns outside `DotDot` and `Wild` are treated as consuming.

changelog: FP [`unused_io_amount`] when matching Ok(literal) or unreachable

fixes #12208

r? `@blyxyas`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper')
0 files changed, 0 insertions, 0 deletions