diff options
| author | Markus Reiter <me@reitermark.us> | 2024-02-22 14:59:52 +0100 |
|---|---|---|
| committer | Markus Reiter <me@reitermark.us> | 2024-02-25 12:03:48 +0100 |
| commit | b2fbb8a05392be976c67e3b0063203d5b049da5c (patch) | |
| tree | 798ac97adb74714b49df51d997c177ab056f9e34 /tests/codegen/array-equality.rs | |
| parent | 710048f790ebc9ebfac6039c6733570f8084c9de (diff) | |
| download | rust-b2fbb8a05392be976c67e3b0063203d5b049da5c.tar.gz rust-b2fbb8a05392be976c67e3b0063203d5b049da5c.zip | |
Use generic `NonZero` in tests.
Diffstat (limited to 'tests/codegen/array-equality.rs')
| -rw-r--r-- | tests/codegen/array-equality.rs | 4 |
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]] |
