diff options
| author | bors <bors@rust-lang.org> | 2024-01-21 09:18:48 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-01-21 09:18:48 +0000 |
| commit | cb25c5bc3d526a8fb931314cb3a7849115134b04 (patch) | |
| tree | 3796402da73b4643ceecc186bf4bbba17d0b1229 /tests/coverage/coroutine.rs | |
| parent | 867d39cdf625e4db4b381faff993346582e598b4 (diff) | |
| parent | 01669d27d2e9e26ab247a8f6ae78a9673513c7dd (diff) | |
| download | rust-cb25c5bc3d526a8fb931314cb3a7849115134b04.tar.gz rust-cb25c5bc3d526a8fb931314cb3a7849115134b04.zip | |
Auto merge of #120187 - Nadrieril:rollup-xfwrb0c, r=Nadrieril
Rollup of 8 pull requests
Successful merges:
- #116090 (Implement strict integer operations that panic on overflow)
- #118811 (Use `bool` instead of `PartiolOrd` as return value of the comparison closure in `{slice,Iteraotr}::is_sorted_by`)
- #119081 (Add Ipv6Addr::is_ipv4_mapped)
- #119461 (Use an interpreter in MIR jump threading)
- #119996 (Move OS String implementation into `sys`)
- #120015 (coverage: Format all coverage tests with `rustfmt`)
- #120027 (pattern_analysis: Remove `Ty: Copy` bound)
- #120084 (fix(rust-analyzer): use new pkgid spec to compare)
r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'tests/coverage/coroutine.rs')
| -rw-r--r-- | tests/coverage/coroutine.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/coverage/coroutine.rs b/tests/coverage/coroutine.rs index 86d19af6f4f..2aa689466fc 100644 --- a/tests/coverage/coroutine.rs +++ b/tests/coverage/coroutine.rs @@ -9,7 +9,11 @@ use std::pin::Pin; // drop all `Counter` `Coverage` statements from a MIR. `simplify.rs` has logic // to handle this condition, and still report dead block coverage. fn get_u32(val: bool) -> Result<u32, String> { - if val { Ok(1) } else { Err(String::from("some error")) } + if val { + Ok(1) + } else { + Err(String::from("some error")) + } } fn main() { |
