diff options
| author | OleStrohm <strohm99@gmail.com> | 2022-08-06 18:52:35 +0200 |
|---|---|---|
| committer | OleStrohm <strohm99@gmail.com> | 2022-09-12 20:19:19 +0100 |
| commit | e28046c673178361d39b7f6dafd6915767f2d71f (patch) | |
| tree | a24e7f04fdc24106c6263b83abad41cbfcc4c9c0 | |
| parent | 997fc46efad4dac0c325df55e17a55d7cc4cdc05 (diff) | |
| download | rust-e28046c673178361d39b7f6dafd6915767f2d71f.tar.gz rust-e28046c673178361d39b7f6dafd6915767f2d71f.zip | |
Removed unnecessary TODO
| -rw-r--r-- | crates/hir-ty/src/consteval.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir-ty/src/consteval.rs b/crates/hir-ty/src/consteval.rs index e934fe1c323..b47d7308941 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")), } } |
