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

@@ -86,6 +86,7 @@ pub struct BlockLoweringOrder {
lowered_order: Vec<LoweredBlock>,
/// Successors for all lowered blocks, in one serialized vector. Indexed by
/// the ranges in `lowered_succ_ranges`.
#[allow(dead_code)]
lowered_succs: Vec<(Inst, LoweredBlock)>,
/// BlockIndex values for successors for all lowered blocks, in the same
/// order as `lowered_succs`.
@@ -96,6 +97,7 @@ pub struct BlockLoweringOrder {
/// Mapping from CLIF BB to BlockIndex (index in lowered order). Note that
/// some CLIF BBs may not be lowered; in particular, we skip unreachable
/// blocks.
#[allow(dead_code)]
orig_map: SecondaryMap<Block, Option<BlockIndex>>,
}