diff options
| author | Boxy <supbscripter@gmail.com> | 2022-11-24 08:20:51 +0000 |
|---|---|---|
| committer | kadmin <julianknodt@gmail.com> | 2022-11-25 09:28:44 +0000 |
| commit | 430f7d16e669d0dc21e7c7545c72720a4f0acfaf (patch) | |
| tree | 6326c530a16a60233be558498698813ad1f35aaa /compiler/rustc_const_eval/src | |
| parent | 95e1a39c048b922754b3bc0fc5d305259a56289f (diff) | |
| download | rust-430f7d16e669d0dc21e7c7545c72720a4f0acfaf.tar.gz rust-430f7d16e669d0dc21e7c7545c72720a4f0acfaf.zip | |
add FIXME's
Diffstat (limited to 'compiler/rustc_const_eval/src')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/operand.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/operand.rs b/compiler/rustc_const_eval/src/interpret/operand.rs index 6619a40b085..221e359d24a 100644 --- a/compiler/rustc_const_eval/src/interpret/operand.rs +++ b/compiler/rustc_const_eval/src/interpret/operand.rs @@ -561,6 +561,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { ty::ConstKind::Param(_) | ty::ConstKind::Placeholder(..) => { throw_inval!(TooGeneric) } + // FIXME(generic_const_exprs): `ConstKind::Expr` should be able to be evaluated ty::ConstKind::Expr(_) => throw_inval!(TooGeneric), ty::ConstKind::Error(reported) => { throw_inval!(AlreadyReported(reported)) |
