mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Removed unnecessary TODO
This commit is contained in:
parent
997fc46efa
commit
e28046c673
1 changed files with 1 additions and 1 deletions
|
@ -339,7 +339,7 @@ pub fn eval_const(
|
||||||
ValueNs::GenericParam(_) => {
|
ValueNs::GenericParam(_) => {
|
||||||
Err(ConstEvalError::NotSupported("const generic without substitution"))
|
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")),
|
_ => Err(ConstEvalError::NotSupported("path that are not const or local")),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue