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.

View File

@@ -111,6 +111,7 @@ mod windowsx64 {
version: u8,
flags: u8,
prologue_size: u8,
#[allow(dead_code)]
unwind_code_count_raw: u8,
frame_register: u8,
frame_register_offset: u8,