Skip to content

Commit ad7eb48

Browse files
committed
Add regression test for #130769
1 parent 16a0266 commit ad7eb48

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Changes in https://github.com/rust-lang/rust/pull/129047 lead to several mir-opt ICE regressions,
2+
// this test is added to make sure this does not regress.
3+
4+
//@ compile-flags: -C opt-level=3
5+
//@ check-pass
6+
7+
#![crate_type = "lib"]
8+
9+
use std::task::Poll;
10+
11+
pub fn poll(val: Poll<Result<Option<Vec<u8>>, u8>>) {
12+
match val {
13+
Poll::Ready(Ok(Some(_trailers))) => {}
14+
Poll::Ready(Err(_err)) => {}
15+
Poll::Ready(Ok(None)) => {}
16+
Poll::Pending => {}
17+
}
18+
}

0 commit comments

Comments
 (0)