Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: viperproject/prusti-dev
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1a06b91fcf42a1c7e1d30440845fc3896da8cb83
Choose a base ref
..
head repository: viperproject/prusti-dev
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: dbd4d2dc58520162058acce787cb1d8ee5c36208
Choose a head ref
Showing with 2 additions and 1 deletion.
  1. +2 −1 prusti-interface/src/environment/mod.rs
3 changes: 2 additions & 1 deletion prusti-interface/src/environment/mod.rs
Original file line number Diff line number Diff line change
@@ -517,7 +517,8 @@ impl<'tcx> Environment<'tcx> {
// if the resolved instance is the same as what we queried for
// anyway, ignore it: this way we keep the regions in substs
// at least for non-trait-impl method calls
.filter(|instance| instance.def_id() != called_def_id)
// TODO: different behaviour used for unsafe core proof
.filter(|instance| !config::unsafe_core_proof() || instance.def_id() != called_def_id)
.map(|instance| (instance.def_id(), instance.substs))
.unwrap_or((called_def_id, call_substs)))
.unwrap_or((called_def_id, call_substs))