diff --git a/crates/hir-ty/src/consteval.rs b/crates/hir-ty/src/consteval.rs index e934fe1c32..b47d730894 100644 --- a/crates/hir-ty/src/consteval.rs +++ b/crates/hir-ty/src/consteval.rs @@ -339,7 +339,7 @@ pub fn eval_const( ValueNs::GenericParam(_) => { Err(ConstEvalError::NotSupported("const generic without substitution")) } - ValueNs::EnumVariantId(id) => ctx.db.const_eval_variant(id), // TODO(ole): Assuming this is all that has to happen? + ValueNs::EnumVariantId(id) => ctx.db.const_eval_variant(id), _ => Err(ConstEvalError::NotSupported("path that are not const or local")), } }