about summary refs log tree commit diff
path: root/tests/codegen/array-equality.rs
diff options
context:
space:
mode:
authorThe Miri Conjob Bot <miri@cron.bot>2024-02-26 05:40:12 +0000
committerThe Miri Conjob Bot <miri@cron.bot>2024-02-26 05:40:12 +0000
commit779d0796772f3167c5de6fe9e89e674f677fe38f (patch)
treebe10d5eb2a4af534962863775bda8be47b642f16 /tests/codegen/array-equality.rs
parent8bdcfb0a0a51825d4c68c5d60d07bfa819c0f3ff (diff)
parent633c92cd6de9e269b9c5b10f341fc10280503f0c (diff)
downloadrust-779d0796772f3167c5de6fe9e89e674f677fe38f.tar.gz
rust-779d0796772f3167c5de6fe9e89e674f677fe38f.zip
Merge from rustc
Diffstat (limited to 'tests/codegen/array-equality.rs')
-rw-r--r--tests/codegen/array-equality.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/codegen/array-equality.rs b/tests/codegen/array-equality.rs
index 94354228886..5b85da1d4a0 100644
--- a/tests/codegen/array-equality.rs
+++ b/tests/codegen/array-equality.rs
@@ -1,7 +1,7 @@
 //@ compile-flags: -O -Z merge-functions=disabled
 //@ only-x86_64
-
 #![crate_type = "lib"]
+#![feature(generic_nonzero)]
 
 // CHECK-LABEL: @array_eq_value
 #[no_mangle]
@@ -63,7 +63,7 @@ pub fn array_eq_zero_short(x: [u16; 3]) -> bool {
 
 // CHECK-LABEL: @array_eq_none_short(i40
 #[no_mangle]
-pub fn array_eq_none_short(x: [Option<std::num::NonZeroU8>; 5]) -> bool {
+pub fn array_eq_none_short(x: [Option<std::num::NonZero<u8>>; 5]) -> bool {
     // CHECK-NEXT: start:
     // CHECK-NEXT: %[[EQ:.+]] = icmp eq i40 %0, 0
     // CHECK-NEXT: ret i1 %[[EQ]]