Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 41f6339

Browse files
committed
This test is "fixed", though not in any meaningful way. Intentionally *not* marking the issue as fixed, because it's really not.
(There MIR tests really need to be regressed with MIR tests, not with UI tests.)
1 parent 2084109 commit 41f6339

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/crashes/136442.rs renamed to tests/ui/sized/peek-iter-of-str.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
//@ known-bug: #136442
1+
//@ build-pass
22
//@ compile-flags: -Copt-level=0 -Zmir-enable-passes=+Inline -Zmir-enable-passes=+JumpThreading --crate-type lib
3+
4+
// Regression test for <https://github.com/rust-lang/rust/issues/136442>
5+
// Used to fail in MIR but #138526 (accidentally) worked around that.
6+
37
pub fn problem_thingy(items: &mut impl Iterator<Item = str>) {
48
let mut peeker = items.peekable();
59
match peeker.peek() {

0 commit comments

Comments
 (0)