From 15112eee6764c08f83d8c444dce7440d68adf9da Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Tue, 13 Jan 2026 15:21:20 +0000 Subject: [PATCH] Avoid should-fail in a codegen-llvm test --- .../codegen-llvm/option-niche-unfixed/option-nonzero-eq.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/codegen-llvm/option-niche-unfixed/option-nonzero-eq.rs b/tests/codegen-llvm/option-niche-unfixed/option-nonzero-eq.rs index 308856cfb7e9..1eb4542323c1 100644 --- a/tests/codegen-llvm/option-niche-unfixed/option-nonzero-eq.rs +++ b/tests/codegen-llvm/option-niche-unfixed/option-nonzero-eq.rs @@ -1,6 +1,5 @@ -//@ should-fail +//@ known-bug: #49892 //@ compile-flags: -Copt-level=3 -Zmerge-functions=disabled -//! FIXME(#49892) //! Test that the derived implementation of `PartialEq` for `Option` is not fully //! optimized by LLVM. If this starts passing, the test and manual impl should //! be removed. @@ -18,7 +17,7 @@ pub enum Option { #[no_mangle] pub fn non_zero_eq(l: Option>, r: Option>) -> bool { // CHECK: start: - // CHECK-NEXT: icmp eq i32 - // CHECK-NEXT: ret i1 + // COMMENTEDCHECK-NEXT: icmp eq i32 + // COMMENTEDCHECK-NEXT: ret i1 l == r }