Skip to content

Commit

Permalink
Disable recursive function call checking because it crashes.
Browse files Browse the repository at this point in the history
  • Loading branch information
vakaras committed Jul 19, 2023
1 parent 0aeb4a3 commit c2990d5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions prusti-interface/src/environment/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,16 @@ impl<'tcx> Environment<'tcx> {
true
} else {
let param_env = self.tcx().param_env(caller_def_id);
if let Some(instance) = self
if let Some(_instance) = self
.tcx()
.resolve_instance(param_env.and((called_def_id, call_substs)))
.unwrap()
{
self.tcx()
.mir_callgraph_reachable((instance, caller_def_id.expect_local()))
// FIXME: This call panics due to stolen MIR. Therefore, we
// unsoundly assume that the callee is not reachable.
// self.tcx()
// .mir_callgraph_reachable((instance, caller_def_id.expect_local()))
false
} else {
true
}
Expand Down

0 comments on commit c2990d5

Please sign in to comment.