From f080180b1d165e3f768bcd5e485f4b34e3c3327a Mon Sep 17 00:00:00 2001 From: Nikita Mounier <36044205+nikitamounier@users.noreply.github.com> Date: Fri, 8 Apr 2022 20:24:07 +0000 Subject: [PATCH] Allow `ZigVersion` enum to have dead code (unused case) Quick and dirty PR to suppress warning when building / running compiler that says: ```rust warning: variant is never constructed: `Zig8` --> compiler/gen_wasm/src/layout.rs:143:5 | 143 | Zig8, | ^^^^ | = note: `#[warn(dead_code)]` on by default ``` I'm guessing that the `Zig8` case will be used at some point, so outright deleting the case seemed hasteful to me. --- compiler/gen_wasm/src/layout.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/gen_wasm/src/layout.rs b/compiler/gen_wasm/src/layout.rs index 8d7a472238..d6284545b2 100644 --- a/compiler/gen_wasm/src/layout.rs +++ b/compiler/gen_wasm/src/layout.rs @@ -138,6 +138,7 @@ impl WasmLayout { } } +#[allow(dead_code)] #[derive(PartialEq, Eq)] pub enum ZigVersion { Zig8,