Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into wip-05-09_wasm_cache
Browse files Browse the repository at this point in the history
  • Loading branch information
cfallin committed Aug 11, 2022
2 parents 254a285 + c1c48b4 commit fbcd271
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
16 changes: 9 additions & 7 deletions crates/runtime/src/cow_disabled.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ impl ModuleMemoryImages {
/// places (e.g. a `Memory`), we define a zero-sized type when memory is
/// not included in the build.
#[derive(Debug)]
pub enum MemoryImageSlot {}
pub struct MemoryImageSlot {
_priv: (),
}

#[allow(dead_code)]
impl MemoryImageSlot {
Expand All @@ -48,26 +50,26 @@ impl MemoryImageSlot {
_: usize,
_: Option<&Arc<MemoryImage>>,
) -> Result<Self, InstantiationError> {
match *self {}
unreachable!();
}

pub(crate) fn no_clear_on_drop(&mut self) {
match *self {}
unreachable!();
}

pub(crate) fn clear_and_remain_ready(&mut self) -> Result<()> {
match *self {}
unreachable!();
}

pub(crate) fn has_image(&self) -> bool {
match *self {}
unreachable!();
}

pub(crate) fn is_dirty(&self) -> bool {
match *self {}
unreachable!();
}

pub(crate) fn set_heap_limit(&mut self, _: usize) -> Result<()> {
match *self {}
unreachable!();
}
}
1 change: 0 additions & 1 deletion crates/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
clippy::use_self
)
)]
#![cfg_attr(not(memory_init_cow), allow(unused_variables, unreachable_code))]

use anyhow::Error;
use std::sync::atomic::{AtomicU64, AtomicUsize, Ordering};
Expand Down

0 comments on commit fbcd271

Please sign in to comment.