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`.
This commit is contained in:
David Wendt 2020-03-08 23:16:50 -04:00
parent 6117288fe2
commit fe283e6770
1 changed files with 3 additions and 0 deletions

View File

@ -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<Attribute>,