We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16a0266 commit ad7eb48Copy full SHA for ad7eb48
tests/ui/mir/early-otherwise-branch-ice.rs
@@ -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