From 96dcc5129788de960976f892b9f1a9ed216be363 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Sat, 15 Oct 2022 16:45:40 -0700 Subject: refactor(tvix/eval) remove Value::DynamicUpvalueMissing I believe this variant is left over from a previous implementation. If not, please let me know. Signed-off-by: Adam Joseph Change-Id: I02a3bf2f63794d09e96a5a92a034c0ad3d1ff221 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7027 Tested-by: BuildkiteCI Reviewed-by: tazjin --- tvix/eval/src/value/mod.rs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'tvix/eval/src/value') diff --git a/tvix/eval/src/value/mod.rs b/tvix/eval/src/value/mod.rs index 175b33bfa2e8..9231e91bbe8b 100644 --- a/tvix/eval/src/value/mod.rs +++ b/tvix/eval/src/value/mod.rs @@ -44,7 +44,6 @@ pub enum Value { // are never returned to or created directly by users. Thunk(Thunk), AttrNotFound, - DynamicUpvalueMissing(NixString), Blueprint(Rc), DeferredUpvalue(StackIdx), } @@ -240,7 +239,6 @@ impl Value { }), (Value::AttrNotFound, _) - | (Value::DynamicUpvalueMissing(_), _) | (Value::Blueprint(_), _) | (Value::DeferredUpvalue(_), _) => { panic!("tvix bug: .coerce_to_string() called on internal value") @@ -263,7 +261,6 @@ impl Value { // Internal types Value::Thunk(_) | Value::AttrNotFound - | Value::DynamicUpvalueMissing(_) | Value::Blueprint(_) | Value::DeferredUpvalue(_) => "internal", } @@ -365,9 +362,6 @@ impl Display for Value { Value::AttrNotFound => f.write_str("internal[not found]"), Value::Blueprint(_) => f.write_str("internal[blueprint]"), Value::DeferredUpvalue(_) => f.write_str("internal[deferred_upvalue]"), - Value::DynamicUpvalueMissing(name) => { - write!(f, "internal[no_dyn_upvalue({name})]") - } } } } -- cgit 1.4.1