@@ -27,10 +27,10 @@ use crate::variables::DomainId;
27
27
/// Used during conflict analysis to provide the necessary information.
28
28
///
29
29
/// 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 > {
31
31
pub ( crate ) assignments : & ' a mut Assignments ,
32
32
pub ( crate ) solver_state : & ' a mut CSPSolverState ,
33
- pub ( crate ) reason_store : & ' reasons mut ReasonStore ,
33
+ pub ( crate ) reason_store : & ' a mut ReasonStore ,
34
34
pub ( crate ) brancher : & ' a mut dyn Brancher ,
35
35
pub ( crate ) propagators : & ' a mut PropagatorStore ,
36
36
pub ( crate ) semantic_minimiser : & ' a mut SemanticMinimiser ,
@@ -50,13 +50,13 @@ pub(crate) struct ConflictAnalysisContext<'a, 'reasons> {
50
50
pub ( crate ) unit_nogood_step_ids : & ' a HashMap < Predicate , StepId > ,
51
51
}
52
52
53
- impl Debug for ConflictAnalysisContext < ' _ , ' _ > {
53
+ impl Debug for ConflictAnalysisContext < ' _ > {
54
54
fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
55
55
f. debug_struct ( std:: any:: type_name :: < Self > ( ) ) . finish ( )
56
56
}
57
57
}
58
58
59
- impl < ' reasons > ConflictAnalysisContext < ' _ , ' reasons > {
59
+ impl < ' a > ConflictAnalysisContext < ' a > {
60
60
/// Returns the last decision which was made by the solver.
61
61
pub ( crate ) fn find_last_decision ( & mut self ) -> Option < Predicate > {
62
62
self . assignments . find_last_decision ( )
@@ -133,11 +133,11 @@ impl<'reasons> ConflictAnalysisContext<'_, 'reasons> {
133
133
predicate : Predicate ,
134
134
assignments : & Assignments ,
135
135
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 ,
138
138
proof_log : & mut ProofLog ,
139
139
unit_nogood_step_ids : & HashMap < Predicate , StepId > ,
140
- ) -> & ' reasons [ Predicate ] {
140
+ ) -> & ' a [ Predicate ] {
141
141
// TODO: this function could be put into the reason store
142
142
143
143
// Note that this function can only be called with propagations, and never decision
0 commit comments