From de0b2735f631c31520fb0be136810841aac03ab0 Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Fri, 2 Sep 2022 13:49:14 +0200 Subject: [PATCH] proper transmute to u8 Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> --- crates/compiler/test_gen/src/gen_list.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/compiler/test_gen/src/gen_list.rs b/crates/compiler/test_gen/src/gen_list.rs index e1a0ebd236..13db9276df 100644 --- a/crates/compiler/test_gen/src/gen_list.rs +++ b/crates/compiler/test_gen/src/gen_list.rs @@ -100,8 +100,9 @@ fn bool_list_literal() { List.repeat true 23 "# ), - RocList::from_slice(&[true; 22]), - RocList + RocList::from_slice(&[1u8; 23]), + RocList, + |l: RocList| unsafe { std::mem::transmute::, RocList>(l) } ); /*assert_evals_to!(