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.
This commit is contained in:
Nikita Mounier 2022-04-08 20:24:07 +00:00 committed by GitHub
parent 2f654ca6dd
commit f080180b1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -138,6 +138,7 @@ impl WasmLayout {
}
}
#[allow(dead_code)]
#[derive(PartialEq, Eq)]
pub enum ZigVersion {
Zig8,