Skip to content

Commit 769ac7c

Browse files
committed
Fix libraries paths following upstream
1 parent 0d79ba6 commit 769ac7c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/cargo/core/compiler/standard_lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub fn resolve_std<'cfg>(
4646
let patches = to_patch
4747
.iter()
4848
.map(|&name| {
49-
let source_path = SourceId::for_path(&src_path.join("src").join("tools").join(name))?;
49+
let source_path = SourceId::for_path(&src_path.join("library").join(name))?;
5050
let dep = Dependency::parse_no_deprecated(name, None, source_path)?;
5151
Ok(dep)
5252
})
@@ -55,10 +55,10 @@ pub fn resolve_std<'cfg>(
5555
let mut patch = HashMap::new();
5656
patch.insert(crates_io_url, patches);
5757
let members = vec![
58-
String::from("src/libstd"),
59-
String::from("src/libcore"),
60-
String::from("src/liballoc"),
61-
String::from("src/libtest"),
58+
String::from("library/std"),
59+
String::from("library/core"),
60+
String::from("library/alloc"),
61+
String::from("library/test"),
6262
];
6363
let ws_config = crate::core::WorkspaceConfig::Root(crate::core::WorkspaceRootConfig::new(
6464
&src_path,
@@ -85,7 +85,7 @@ pub fn resolve_std<'cfg>(
8585
// other crates need to alter their features, this should be fine, for
8686
// now. Perhaps in the future features will be decoupled from the resolver
8787
// and it will be easier to control feature selection.
88-
let current_manifest = src_path.join("src/libtest/Cargo.toml");
88+
let current_manifest = src_path.join("library/test/Cargo.toml");
8989
// TODO: Consider doing something to enforce --locked? Or to prevent the
9090
// lock file from being written, such as setting ephemeral.
9191
let mut std_ws = Workspace::new_virtual(src_path, current_manifest, virtual_manifest, config)?;

0 commit comments

Comments
 (0)