Skip to content

Commit e04d3db

Browse files
committed
undo lifetime experiments
1 parent d9db162 commit e04d3db

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pumpkin-solver/src/engine/conflict_analysis/conflict_analysis_context.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ use crate::variables::DomainId;
2727
/// Used during conflict analysis to provide the necessary information.
2828
///
2929
/// All fields are made public for the time being for simplicity. In the future that may change.
30-
pub(crate) struct ConflictAnalysisContext<'a, 'reasons> {
30+
pub(crate) struct ConflictAnalysisContext<'a> {
3131
pub(crate) assignments: &'a mut Assignments,
3232
pub(crate) solver_state: &'a mut CSPSolverState,
33-
pub(crate) reason_store: &'reasons mut ReasonStore,
33+
pub(crate) reason_store: &'a mut ReasonStore,
3434
pub(crate) brancher: &'a mut dyn Brancher,
3535
pub(crate) propagators: &'a mut PropagatorStore,
3636
pub(crate) semantic_minimiser: &'a mut SemanticMinimiser,
@@ -50,13 +50,13 @@ pub(crate) struct ConflictAnalysisContext<'a, 'reasons> {
5050
pub(crate) unit_nogood_step_ids: &'a HashMap<Predicate, StepId>,
5151
}
5252

53-
impl Debug for ConflictAnalysisContext<'_, '_> {
53+
impl Debug for ConflictAnalysisContext<'_> {
5454
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
5555
f.debug_struct(std::any::type_name::<Self>()).finish()
5656
}
5757
}
5858

59-
impl<'reasons> ConflictAnalysisContext<'_, 'reasons> {
59+
impl<'a> ConflictAnalysisContext<'a> {
6060
/// Returns the last decision which was made by the solver.
6161
pub(crate) fn find_last_decision(&mut self) -> Option<Predicate> {
6262
self.assignments.find_last_decision()
@@ -133,11 +133,11 @@ impl<'reasons> ConflictAnalysisContext<'_, 'reasons> {
133133
predicate: Predicate,
134134
assignments: &Assignments,
135135
current_nogood: CurrentNogood<'_>,
136-
reason_store: &'reasons mut ReasonStore,
137-
propagators: &'reasons mut PropagatorStore,
136+
reason_store: &'a mut ReasonStore,
137+
propagators: &'a mut PropagatorStore,
138138
proof_log: &mut ProofLog,
139139
unit_nogood_step_ids: &HashMap<Predicate, StepId>,
140-
) -> &'reasons [Predicate] {
140+
) -> &'a [Predicate] {
141141
// TODO: this function could be put into the reason store
142142

143143
// Note that this function can only be called with propagations, and never decision

0 commit comments

Comments
 (0)