Skip to content

Commit 708bc35

Browse files
authored
Remove unneeded unwinds from unbounded benchmarks (rust-lang#2431)
1 parent 6e91d13 commit 708bc35

File tree

9 files changed

+0
-11
lines changed

9 files changed

+0
-11
lines changed

tests/kani/AsyncAwait/main.rs

-3
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,20 @@ use std::{
1414
fn main() {}
1515

1616
#[kani::proof]
17-
#[kani::unwind(2)]
1817
async fn test_async_proof_harness() {
1918
let async_block_result = async { 42 }.await;
2019
let async_fn_result = async_fn().await;
2120
assert_eq!(async_block_result, async_fn_result);
2221
}
2322

2423
#[kani::proof]
25-
#[kani::unwind(2)]
2624
pub async fn test_async_proof_harness_pub() {
2725
let async_block_result = async { 42 }.await;
2826
let async_fn_result = async_fn().await;
2927
assert_eq!(async_block_result, async_fn_result);
3028
}
3129

3230
#[kani::proof]
33-
#[kani::unwind(2)]
3431
fn test_async_await() {
3532
// Test using the `block_on` implementation in Kani's library
3633
kani::block_on(async {

tests/kani/Drop/drop_after_moving_across_channel.rs

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ impl Drop for DropSetCELLToOne {
1818
}
1919
}
2020

21-
#[kani::unwind(1)]
2221
#[kani::proof]
2322
fn main() {
2423
{

tests/kani/Generator/rustc-generator-tests/conditional-drop.rs

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ fn test2() -> bool {
3535
}
3636

3737
#[kani::proof]
38-
#[kani::unwind(4)]
3938
fn main() {
4039
t1();
4140
t2();

tests/kani/Generator/rustc-generator-tests/live-upvar-across-yield.rs

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ use std::ops::Generator;
1414
use std::pin::Pin;
1515

1616
#[kani::proof]
17-
#[kani::unwind(2)]
1817
fn main() {
1918
let b = |_| 3;
2019
let mut a = || {

tests/kani/Generator/rustc-generator-tests/moved-locals.rs

-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ fn overlap_x_and_y() -> impl Generator<Yield = (), Return = ()> {
7979
}
8080

8181
#[kani::proof]
82-
#[kani::unwind(129)]
8382
fn main() {
8483
let mut generator = move_before_yield();
8584
assert_eq!(

tests/kani/Generator/rustc-generator-tests/niche-in-generator.rs

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ use std::mem::size_of_val;
2020
fn take<T>(_: T) {}
2121

2222
#[kani::proof]
23-
#[kani::unwind(2)]
2423
fn main() {
2524
let x = false;
2625
let mut gen1 = || {

tests/kani/Generator/rustc-generator-tests/static-generator.rs

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ use std::ops::{Generator, GeneratorState};
1414
use std::pin::Pin;
1515

1616
#[kani::proof]
17-
#[kani::unwind(2)]
1817
fn main() {
1918
let mut generator = static || {
2019
let a = true;

tests/kani/Generator/rustc-generator-tests/yield-in-box.rs

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ use std::ops::GeneratorState;
1515
use std::pin::Pin;
1616

1717
#[kani::proof]
18-
#[kani::unwind(2)]
1918
fn main() {
2019
let x = 0i32;
2120
|| {

tests/kani/PointerComparison/ptr_comparison.rs

-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ fn check_slice_len() {
102102

103103
// Check comparison of box.
104104
#[cfg_attr(kani, kani::proof)]
105-
#[cfg_attr(kani, kani::unwind(4))]
106105
fn check_box_comparison() {
107106
let obj = Box::new([0u16, 10]);
108107
let first: *const [u16] = &obj[1..2];

0 commit comments

Comments
 (0)