@@ -25,9 +25,9 @@ use log::{debug, trace};
25
25
use std:: collections:: HashSet ;
26
26
27
27
/// Result for `resolve_ws_with_opts`.
28
- pub struct WorkspaceResolve < ' a > {
28
+ pub struct WorkspaceResolve < ' cfg > {
29
29
/// Packages to be downloaded.
30
- pub pkg_set : PackageSet < ' a > ,
30
+ pub pkg_set : PackageSet < ' cfg > ,
31
31
/// The resolve for the entire workspace.
32
32
///
33
33
/// This may be `None` for things like `cargo install` and `-Zavoid-dev-deps`.
@@ -72,14 +72,14 @@ pub fn resolve_ws<'a>(ws: &Workspace<'a>) -> CargoResult<(PackageSet<'a>, Resolv
72
72
///
73
73
/// `specs` may be empty, which indicates it should resolve all workspace
74
74
/// members. In this case, `opts.all_features` must be `true`.
75
- pub fn resolve_ws_with_opts < ' a > (
76
- ws : & Workspace < ' a > ,
75
+ pub fn resolve_ws_with_opts < ' cfg > (
76
+ ws : & Workspace < ' cfg > ,
77
77
target_data : & RustcTargetData ,
78
78
requested_target : CompileKind ,
79
79
opts : & ResolveOpts ,
80
80
specs : & [ PackageIdSpec ] ,
81
81
has_dev_units : HasDevUnits ,
82
- ) -> CargoResult < WorkspaceResolve < ' a > > {
82
+ ) -> CargoResult < WorkspaceResolve < ' cfg > > {
83
83
let mut registry = PackageRegistry :: new ( ws. config ( ) ) ?;
84
84
let mut add_patches = true ;
85
85
let resolve = if ws. ignore_lock ( ) {
@@ -371,10 +371,10 @@ pub fn add_overrides<'a>(
371
371
Ok ( ( ) )
372
372
}
373
373
374
- pub fn get_resolved_packages < ' a > (
374
+ pub fn get_resolved_packages < ' cfg > (
375
375
resolve : & Resolve ,
376
- registry : PackageRegistry < ' a > ,
377
- ) -> CargoResult < PackageSet < ' a > > {
376
+ registry : PackageRegistry < ' cfg > ,
377
+ ) -> CargoResult < PackageSet < ' cfg > > {
378
378
let ids: Vec < PackageId > = resolve. iter ( ) . collect ( ) ;
379
379
registry. get ( & ids)
380
380
}
0 commit comments