From e2e096117a406c2b647720b7af70d25849be60a4 Mon Sep 17 00:00:00 2001 From: Brandon Fish Date: Fri, 2 Aug 2019 14:07:10 -0600 Subject: [PATCH] Allow dead_code for existing arch specific methods --- lib/runtime-core/src/state.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/runtime-core/src/state.rs b/lib/runtime-core/src/state.rs index 6fd47b204..51bc3066e 100644 --- a/lib/runtime-core/src/state.rs +++ b/lib/runtime-core/src/state.rs @@ -100,6 +100,7 @@ pub struct InstanceImage { } impl ModuleStateMap { + #[warn(dead_code)] fn lookup_call_ip(&self, ip: usize, base: usize) -> Option<(&FunctionStateMap, MachineState)> { if ip < base || ip - base >= self.total_size { None @@ -123,6 +124,7 @@ impl ModuleStateMap { } } + #[warn(dead_code)] fn lookup_trappable_ip( &self, ip: usize, @@ -150,6 +152,7 @@ impl ModuleStateMap { } } + #[warn(dead_code)] fn lookup_loop_ip(&self, ip: usize, base: usize) -> Option<(&FunctionStateMap, MachineState)> { if ip < base || ip - base >= self.total_size { None