Skip to content

Commit 55b65ff

Browse files
committed
gen-arm: s/simd_reinterpret/transmute_unchecked
`simd_reinterpret` was expected to be used when it was added as `transmute_unchecked` requires `Sized`, but scalable vectors are now `Sized` so `transmute_unchecked` can be used and `simd_reinterpret` was not added in rust-lang#143924.
1 parent 8077797 commit 55b65ff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

library/stdarch/crates/stdarch-gen-arm/src/typekinds.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,9 @@ impl TypeKind {
289289
(
290290
BaseType::Sized(Float | Int | UInt, _),
291291
BaseType::Sized(Float | Int | UInt, _),
292-
) => Some(FnCall::new_expression(
292+
) => Some(FnCall::new_unsafe_expression(
293293
// Conversions between float and (u)int, or where the lane size changes.
294-
"simd_reinterpret".parse().unwrap(),
294+
"transmute_unchecked".parse().unwrap(),
295295
vec![expr.into()],
296296
)),
297297
_ => None,

0 commit comments

Comments
 (0)