We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0aeb4a3 commit c2990d5Copy full SHA for c2990d5
prusti-interface/src/environment/mod.rs
@@ -145,13 +145,16 @@ impl<'tcx> Environment<'tcx> {
145
true
146
} else {
147
let param_env = self.tcx().param_env(caller_def_id);
148
- if let Some(instance) = self
+ if let Some(_instance) = self
149
.tcx()
150
.resolve_instance(param_env.and((called_def_id, call_substs)))
151
.unwrap()
152
{
153
- self.tcx()
154
- .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.
155
+ // self.tcx()
156
+ // .mir_callgraph_reachable((instance, caller_def_id.expect_local()))
157
+ false
158
159
160
}
0 commit comments