Skip to content

Commit

Permalink
Make new ConstKind::Expr return on reach visitor
Browse files Browse the repository at this point in the history
  • Loading branch information
adpaco-aws committed Dec 12, 2022
1 parent b8d8080 commit 341b5bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kani-compiler/src/kani_middle/reachability.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,10 @@ impl<'a, 'tcx> MirVisitor<'tcx> for MonoItemsFnCollector<'a, 'tcx> {
ConstKind::Value(v) => self.tcx.valtree_to_const_val((ct.ty(), v)),
ConstKind::Unevaluated(_) => unreachable!(),
// Nothing to do
ConstKind::Param(..) | ConstKind::Infer(..) | ConstKind::Error(..) => return,
ConstKind::Param(..)
| ConstKind::Infer(..)
| ConstKind::Error(..)
| ConstKind::Expr(..) => return,

// Shouldn't happen
ConstKind::Placeholder(..) | ConstKind::Bound(..) => {
Expand Down

0 comments on commit 341b5bd

Please sign in to comment.