final fixes

This commit is contained in:
Folkert 2023-11-18 23:10:21 +01:00
parent c019ced31d
commit eda9681982
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
5 changed files with 6 additions and 2975 deletions

View file

@ -145,7 +145,7 @@ fn main() -> io::Result<()> {
let triple = target.to_triple();
let function_kind = FunctionKind::LambdaSet;
let (platform_path, stub_lib, stub_dll_symbols) = roc_linker::generate_stub_lib(
&input_path,
input_path,
RocCacheDir::Persistent(cache::roc_cache_dir().as_path()),
&triple,
function_kind,

View file

@ -15,6 +15,8 @@
#![allow(clippy::redundant_static_lifetimes)]
#![allow(clippy::needless_borrow)]
#![allow(clippy::clone_on_copy)]
#![allow(clippy::non_canonical_clone_impl)]
#![allow(clippy::non_canonical_partial_ord_impl)]
#[cfg(any(target_arch = "arm", target_arch = "wasm32", target_arch = "x86"))]
#[derive(Clone, Debug, Eq, Ord, Hash, PartialEq, PartialOrd)]

View file

@ -15,6 +15,8 @@
#![allow(clippy::redundant_static_lifetimes)]
#![allow(clippy::needless_borrow)]
#![allow(clippy::clone_on_copy)]
#![allow(clippy::non_canonical_clone_impl)]
#![allow(clippy::non_canonical_partial_ord_impl)]
#[cfg(any(
target_arch = "arm",

File diff suppressed because it is too large Load diff

View file

@ -18,7 +18,7 @@ macro_rules! deref_number {
impl ReplAppMemory for ExpectMemory {
fn deref_bool(&self, addr: usize) -> bool {
let ptr = unsafe { self.start.add(addr) } as *const u8;
let ptr = unsafe { self.start.add(addr) };
let value = unsafe { std::ptr::read_unaligned(ptr) };
// bool values should only ever be 0 or 1