diff options
| author | bors <bors@rust-lang.org> | 2024-02-26 08:02:40 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-02-26 08:02:40 +0000 |
| commit | 7cadf0b2da0d83d5d38c8eddb033acf1508942e0 (patch) | |
| tree | 0cc9d713cfbed1a362010c110d1ba7f421ec2f07 /tests/codegen/array-equality.rs | |
| parent | 8d74063672a9b1eb283e685cd059187f86d9373d (diff) | |
| parent | db0b49b945f56356ee495cd8b909545d566ef92e (diff) | |
| download | rust-7cadf0b2da0d83d5d38c8eddb033acf1508942e0.tar.gz rust-7cadf0b2da0d83d5d38c8eddb033acf1508942e0.zip | |
Auto merge of #3326 - rust-lang:rustup-2024-02-26, r=RalfJung
Automatic Rustup also fixes https://github.com/rust-lang/miri/issues/3308
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]] |
