Skip to content

Conversation

alexcrichton
Copy link
Member

No description provided.

@alexcrichton alexcrichton deleted the dist-compiler-rt branch February 14, 2014 04:21
flip1995 pushed a commit to flip1995/rust that referenced this pull request Feb 8, 2024
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 rust-lang#12208

r? `@blyxyas`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants