Skip to content

Commit 27ddaea

Browse files
committed
Auto merge of #3878 - rust-lang:rustup-2024-09-11, r=RalfJung
Automatic Rustup
2 parents 7ec0329 + f7170ac commit 27ddaea

11 files changed

+33
-33
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
304b7f801bab31233680879ca4fb6eb294706a59
1+
a9fb00bfa4b3038c855b2097b54e05e8c198c183

src/shims/unix/mem.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
4242
let map_shared = this.eval_libc_i32("MAP_SHARED");
4343
let map_fixed = this.eval_libc_i32("MAP_FIXED");
4444

45-
// This is a horrible hack, but on MacOS and Solaris the guard page mechanism uses mmap
45+
// This is a horrible hack, but on MacOS and Solarish the guard page mechanism uses mmap
4646
// in a way we do not support. We just give it the return value it expects.
4747
if this.frame_in_std()
48-
&& matches!(&*this.tcx.sess.target.os, "macos" | "solaris")
48+
&& matches!(&*this.tcx.sess.target.os, "macos" | "solaris" | "illumos")
4949
&& (flags & map_fixed) != 0
5050
{
5151
return Ok(Scalar::from_maybe_pointer(Pointer::from_addr_invalid(addr), this));

tests/fail/intrinsics/simd-div-by-zero.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ use std::intrinsics::simd::simd_div;
44

55
#[repr(simd)]
66
#[allow(non_camel_case_types)]
7-
struct i32x2(i32, i32);
7+
struct i32x2([i32; 2]);
88

99
fn main() {
1010
unsafe {
11-
let x = i32x2(1, 1);
12-
let y = i32x2(1, 0);
11+
let x = i32x2([1, 1]);
12+
let y = i32x2([1, 0]);
1313
simd_div(x, y); //~ERROR: Undefined Behavior: dividing by zero
1414
}
1515
}

tests/fail/intrinsics/simd-div-overflow.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ use std::intrinsics::simd::simd_div;
44

55
#[repr(simd)]
66
#[allow(non_camel_case_types)]
7-
struct i32x2(i32, i32);
7+
struct i32x2([i32; 2]);
88

99
fn main() {
1010
unsafe {
11-
let x = i32x2(1, i32::MIN);
12-
let y = i32x2(1, -1);
11+
let x = i32x2([1, i32::MIN]);
12+
let y = i32x2([1, -1]);
1313
simd_div(x, y); //~ERROR: Undefined Behavior: overflow in signed division
1414
}
1515
}

tests/fail/intrinsics/simd-reduce-invalid-bool.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ use std::intrinsics::simd::simd_reduce_any;
44

55
#[repr(simd)]
66
#[allow(non_camel_case_types)]
7-
struct i32x2(i32, i32);
7+
struct i32x2([i32; 2]);
88

99
fn main() {
1010
unsafe {
11-
let x = i32x2(0, 1);
11+
let x = i32x2([0, 1]);
1212
simd_reduce_any(x); //~ERROR: must be all-0-bits or all-1-bits
1313
}
1414
}

tests/fail/intrinsics/simd-rem-by-zero.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ use std::intrinsics::simd::simd_rem;
44

55
#[repr(simd)]
66
#[allow(non_camel_case_types)]
7-
struct i32x2(i32, i32);
7+
struct i32x2([i32; 2]);
88

99
fn main() {
1010
unsafe {
11-
let x = i32x2(1, 1);
12-
let y = i32x2(1, 0);
11+
let x = i32x2([1, 1]);
12+
let y = i32x2([1, 0]);
1313
simd_rem(x, y); //~ERROR: Undefined Behavior: calculating the remainder with a divisor of zero
1414
}
1515
}

tests/fail/intrinsics/simd-select-bitmask-invalid.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ use std::intrinsics::simd::simd_select_bitmask;
55
#[repr(simd)]
66
#[allow(non_camel_case_types)]
77
#[derive(Copy, Clone)]
8-
struct i32x2(i32, i32);
8+
struct i32x2([i32; 2]);
99

1010
fn main() {
1111
unsafe {
12-
let x = i32x2(0, 1);
12+
let x = i32x2([0, 1]);
1313
simd_select_bitmask(0b11111111u8, x, x); //~ERROR: bitmask less than 8 bits long must be filled with 0s for the remaining bits
1414
}
1515
}

tests/fail/intrinsics/simd-select-invalid-bool.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ use std::intrinsics::simd::simd_select;
55
#[repr(simd)]
66
#[allow(non_camel_case_types)]
77
#[derive(Copy, Clone)]
8-
struct i32x2(i32, i32);
8+
struct i32x2([i32; 2]);
99

1010
fn main() {
1111
unsafe {
12-
let x = i32x2(0, 1);
12+
let x = i32x2([0, 1]);
1313
simd_select(x, x, x); //~ERROR: must be all-0-bits or all-1-bits
1414
}
1515
}

tests/fail/intrinsics/simd-shl-too-far.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ use std::intrinsics::simd::simd_shl;
44

55
#[repr(simd)]
66
#[allow(non_camel_case_types)]
7-
struct i32x2(i32, i32);
7+
struct i32x2([i32; 2]);
88

99
fn main() {
1010
unsafe {
11-
let x = i32x2(1, 1);
12-
let y = i32x2(100, 0);
11+
let x = i32x2([1, 1]);
12+
let y = i32x2([100, 0]);
1313
simd_shl(x, y); //~ERROR: overflowing shift by 100 in `simd_shl` in lane 0
1414
}
1515
}

tests/fail/intrinsics/simd-shr-too-far.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ use std::intrinsics::simd::simd_shr;
44

55
#[repr(simd)]
66
#[allow(non_camel_case_types)]
7-
struct i32x2(i32, i32);
7+
struct i32x2([i32; 2]);
88

99
fn main() {
1010
unsafe {
11-
let x = i32x2(1, 1);
12-
let y = i32x2(20, 40);
11+
let x = i32x2([1, 1]);
12+
let y = i32x2([20, 40]);
1313
simd_shr(x, y); //~ERROR: overflowing shift by 40 in `simd_shr` in lane 1
1414
}
1515
}

0 commit comments

Comments
 (0)