@@ -92,7 +92,7 @@ pub fn resolve_std<'cfg>(
92
92
String :: from( "library/std" ) ,
93
93
String :: from( "library/core" ) ,
94
94
String :: from( "library/alloc" ) ,
95
- String :: from( "library/test " ) ,
95
+ String :: from( "library/sysroot " ) ,
96
96
] ;
97
97
let ws_config = crate :: core:: WorkspaceConfig :: Root ( crate :: core:: WorkspaceRootConfig :: new (
98
98
& src_path,
@@ -114,24 +114,24 @@ pub fn resolve_std<'cfg>(
114
114
let config = ws. config ( ) ;
115
115
// This is a delicate hack. In order for features to resolve correctly,
116
116
// the resolver needs to run a specific "current" member of the workspace.
117
- // Thus, in order to set the features for `std`, we need to set `libtest `
118
- // to be the "current" member. `libtest ` is the root, and all other
117
+ // Thus, in order to set the features for `std`, we need to set `sysroot `
118
+ // to be the "current" member. `sysroot ` is the root, and all other
119
119
// standard library crates are dependencies from there. Since none of the
120
120
// other crates need to alter their features, this should be fine, for
121
121
// now. Perhaps in the future features will be decoupled from the resolver
122
122
// and it will be easier to control feature selection.
123
- let current_manifest = src_path. join ( "library/test /Cargo.toml" ) ;
123
+ let current_manifest = src_path. join ( "library/sysroot /Cargo.toml" ) ;
124
124
// TODO: Consider doing something to enforce --locked? Or to prevent the
125
125
// lock file from being written, such as setting ephemeral.
126
126
let mut std_ws = Workspace :: new_virtual ( src_path, current_manifest, virtual_manifest, config) ?;
127
127
// Don't require optional dependencies in this workspace, aka std's own
128
128
// `[dev-dependencies]`. No need for us to generate a `Resolve` which has
129
129
// those included because we'll never use them anyway.
130
130
std_ws. set_require_optional_deps ( false ) ;
131
- // `test ` is not in the default set because it is optional, but it needs
132
- // to be part of the resolve in case we do need it.
131
+ // `sysroot ` is not in the default set because it is optional, but it needs
132
+ // to be part of the resolve in case we do need it or `libtest` .
133
133
let mut spec_pkgs = Vec :: from ( crates) ;
134
- spec_pkgs. push ( "test " . to_string ( ) ) ;
134
+ spec_pkgs. push ( "sysroot " . to_string ( ) ) ;
135
135
let spec = Packages :: Packages ( spec_pkgs) ;
136
136
let specs = spec. to_package_id_specs ( & std_ws) ?;
137
137
let features = match & config. cli_unstable ( ) . build_std_features {
0 commit comments