Skip to content

Commit 1e8078d

Browse files
author
The Miri Cronjob Bot
committed
Merge from rustc
2 parents fc3244b + a7060ca commit 1e8078d

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

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)