Skip to content

Commit 0fdd7e1

Browse files
authored
Merge pull request #4284 from rust-lang/rustup-2025-04-22
Automatic Rustup
2 parents 5986e2a + 1e8078d commit 0fdd7e1

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
90fd16eb5be9255006c95e8af12a0d43854dc1a9
1+
fae7785b60ea7fe1ad293352c057a5b7be73d245

src/helpers.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,6 +1382,11 @@ pub(crate) fn bool_to_simd_element(b: bool, size: Size) -> Scalar {
13821382
}
13831383

13841384
pub(crate) fn simd_element_to_bool(elem: ImmTy<'_>) -> InterpResult<'_, bool> {
1385+
assert!(
1386+
matches!(elem.layout.ty.kind(), ty::Int(_) | ty::Uint(_)),
1387+
"SIMD mask element type must be an integer, but this is `{}`",
1388+
elem.layout.ty
1389+
);
13851390
let val = elem.to_scalar().to_int(elem.layout.size)?;
13861391
interp_ok(match val {
13871392
0 => false,

tests/fail/panic/tls_macro_const_drop_panic.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
thread $NAME panicked at tests/fail/panic/tls_macro_const_drop_panic.rs:LL:CC:
33
ow
4-
fatal runtime error: thread local panicked on drop
4+
fatal runtime error: thread local panicked on drop, aborting
55
error: abnormal termination: the program aborted execution
66

77
error: aborting due to 1 previous error

tests/fail/panic/tls_macro_drop_panic.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
thread $NAME panicked at tests/fail/panic/tls_macro_drop_panic.rs:LL:CC:
33
ow
4-
fatal runtime error: thread local panicked on drop
4+
fatal runtime error: thread local panicked on drop, aborting
55
error: abnormal termination: the program aborted execution
66

77
error: aborting due to 1 previous error

0 commit comments

Comments
 (0)