From 4632b6a816cf9344969a83c1a4bad2640972eab9 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 30 Jul 2021 11:13:21 -0500 Subject: [PATCH] Fix warning on new-stable (#3131) One of the fields of `TargetIsa` isn't used in the cranelift-codegen-meta crate, but instead of refactoring to try to remove it this just adds `#[allow(dead_code)]` for now in the assumption that when the old backends go away this will probably go away as well. --- cranelift/codegen/meta/src/cdsl/isa.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/cranelift/codegen/meta/src/cdsl/isa.rs b/cranelift/codegen/meta/src/cdsl/isa.rs index 512105d09a..f3984d7bd2 100644 --- a/cranelift/codegen/meta/src/cdsl/isa.rs +++ b/cranelift/codegen/meta/src/cdsl/isa.rs @@ -10,6 +10,7 @@ use crate::cdsl::xform::{TransformGroupIndex, TransformGroups}; pub(crate) struct TargetIsa { pub name: &'static str, + #[allow(dead_code)] pub instructions: InstructionGroup, pub settings: SettingGroup, pub regs: IsaRegs,