File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -81,12 +81,10 @@ pub fn resolve_std<'gctx>(
81
81
// `[dev-dependencies]`. No need for us to generate a `Resolve` which has
82
82
// those included because we'll never use them anyway.
83
83
std_ws. set_require_optional_deps ( false ) ;
84
- // `sysroot` is not in the default set because it is optional, but it needs
85
- // to be part of the resolve in case we do need it or `libtest`.
86
- let mut spec_pkgs: Vec < String > = crates. iter ( ) . map ( |s| s. to_string ( ) ) . collect ( ) ;
87
- spec_pkgs. push ( "sysroot" . to_string ( ) ) ;
88
- let spec = Packages :: Packages ( spec_pkgs) ;
89
- let specs = spec. to_package_id_specs ( & std_ws) ?;
84
+ // `sysroot` + the default feature set below should give us a good default
85
+ // Resolve, which includes `libtest` as well.
86
+ let specs = Packages :: Packages ( vec ! [ "sysroot" . into( ) ] ) ;
87
+ let specs = specs. to_package_id_specs ( & std_ws) ?;
90
88
let features = match & gctx. cli_unstable ( ) . build_std_features {
91
89
Some ( list) => list. clone ( ) ,
92
90
None => vec ! [
You can’t perform that action at this time.
0 commit comments