mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
final fixes
This commit is contained in:
parent
c019ced31d
commit
eda9681982
5 changed files with 6 additions and 2975 deletions
|
@ -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,
|
||||
|
|
|
@ -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)]
|
||||
|
|
|
@ -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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue