File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ impl<DP: DependencyProvider> State<DP> {
70
70
}
71
71
72
72
/// Add an incompatibility to the state.
73
+ #[ cold]
73
74
pub ( crate ) fn add_incompatibility_from_dependencies (
74
75
& mut self ,
75
76
package_id : PackageId ,
@@ -91,6 +92,7 @@ impl<DP: DependencyProvider> State<DP> {
91
92
92
93
/// Unit propagation is the core mechanism of the solving algorithm.
93
94
/// CF <https://github.com/dart-lang/pub/blob/master/doc/solver.md#unit-propagation>
95
+ #[ cold]
94
96
pub ( crate ) fn unit_propagation (
95
97
& mut self ,
96
98
package_id : PackageId ,
@@ -170,6 +172,7 @@ impl<DP: DependencyProvider> State<DP> {
170
172
171
173
/// Return the root cause or the terminal incompatibility.
172
174
/// CF <https://github.com/dart-lang/pub/blob/master/doc/solver.md#unit-propagation>
175
+ #[ cold]
173
176
fn conflict_resolution (
174
177
& mut self ,
175
178
incompatibility : IncompDpId < DP > ,
Original file line number Diff line number Diff line change @@ -285,6 +285,7 @@ impl<DP: DependencyProvider> PartialSolution<DP> {
285
285
}
286
286
}
287
287
288
+ #[ cold]
288
289
pub ( crate ) fn pick_highest_priority_pkg (
289
290
& mut self ,
290
291
mut prioritizer : impl FnMut ( PackageId , VersionSet ) -> DP :: Priority ,
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ use crate::{
67
67
68
68
/// Main function of the library.
69
69
/// Finds a set of packages satisfying dependency bounds for a given package + version pair.
70
+ #[ cold]
70
71
pub fn resolve < DP : DependencyProvider > (
71
72
dependency_provider : & mut DP ,
72
73
package : DP :: P ,
You can’t perform that action at this time.
0 commit comments