Skip to content

Commit c2990d5

Browse files
committed
Disable recursive function call checking because it crashes.
1 parent 0aeb4a3 commit c2990d5

File tree

1 file changed

+6
-3
lines changed
  • prusti-interface/src/environment

1 file changed

+6
-3
lines changed

prusti-interface/src/environment/mod.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,16 @@ impl<'tcx> Environment<'tcx> {
145145
true
146146
} else {
147147
let param_env = self.tcx().param_env(caller_def_id);
148-
if let Some(instance) = self
148+
if let Some(_instance) = self
149149
.tcx()
150150
.resolve_instance(param_env.and((called_def_id, call_substs)))
151151
.unwrap()
152152
{
153-
self.tcx()
154-
.mir_callgraph_reachable((instance, caller_def_id.expect_local()))
153+
// FIXME: This call panics due to stolen MIR. Therefore, we
154+
// unsoundly assume that the callee is not reachable.
155+
// self.tcx()
156+
// .mir_callgraph_reachable((instance, caller_def_id.expect_local()))
157+
false
155158
} else {
156159
true
157160
}

0 commit comments

Comments
 (0)