From fe283e6770f79a9d640415c312ca56d03f2883f1 Mon Sep 17 00:00:00 2001 From: David Wendt Date: Sun, 8 Mar 2020 23:16:50 -0400 Subject: [PATCH] Silence this warning about occupied slots being an unused variant. I don't know if I'm missing something, but I'm pretty sure this variant is reachable via `TObject::install_slot`. --- core/src/avm2/slot.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/avm2/slot.rs b/core/src/avm2/slot.rs index 1ddbdc269..2456363ed 100644 --- a/core/src/avm2/slot.rs +++ b/core/src/avm2/slot.rs @@ -8,6 +8,7 @@ use gc_arena::{Collect, CollectionContext}; /// Represents a single slot on an object. #[derive(Clone, Debug)] +#[allow(dead_code)] pub enum Slot<'gc> { /// An unoccupied slot. /// @@ -16,6 +17,8 @@ pub enum Slot<'gc> { Unoccupied, /// An occupied slot. + /// + /// TODO: For some reason, rustc believes this variant is unused. Occupied { value: Value<'gc>, attributes: EnumSet,