We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 997fc46 commit e28046cCopy full SHA for e28046c
crates/hir-ty/src/consteval.rs
@@ -339,7 +339,7 @@ pub fn eval_const(
339
ValueNs::GenericParam(_) => {
340
Err(ConstEvalError::NotSupported("const generic without substitution"))
341
}
342
- 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),
343
_ => Err(ConstEvalError::NotSupported("path that are not const or local")),
344
345
0 commit comments