cranelift codegen & filetests: silence new dead code warnings in rust 1.57

This commit is contained in:
Pat Hickey
2021-12-03 10:33:09 -08:00
parent c890fab5dd
commit cf03b2a513
3 changed files with 4 additions and 0 deletions

View File

@@ -58,6 +58,7 @@ type HeapMemory = Vec<u8>;
pub struct RuntestContext {
/// Store the heap memory alongside the context info so that we don't accidentally deallocate
/// it too early.
#[allow(dead_code)]
heaps: Vec<HeapMemory>,
/// This is the actual struct that gets passed into the `vmctx` argument of the tests.