Fix panic in const eval and parameter destructing

This commit is contained in:
hkalbasi 2023-04-24 00:49:57 +03:30
parent 2feabc4dc4
commit 01c1b3dc71
6 changed files with 57 additions and 17 deletions

View file

@ -769,6 +769,7 @@ impl Evaluator<'_> {
}
}
}
Rvalue::Repeat(_, _) => not_supported!("evaluating repeat rvalue"),
Rvalue::ShallowInitBox(_, _) => not_supported!("shallow init box"),
Rvalue::CopyForDeref(_) => not_supported!("copy for deref"),
Rvalue::Aggregate(kind, values) => {