fix broken x {doc, build} core
Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
parent
f77247ac59
commit
56f8f48e05
3 changed files with 10 additions and 9 deletions
|
@ -95,7 +95,7 @@ impl Step for Std {
|
|||
const DEFAULT: bool = true;
|
||||
|
||||
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
|
||||
run.crate_or_deps("sysroot").path("library").alias("core")
|
||||
run.crate_or_deps("sysroot").path("library")
|
||||
}
|
||||
|
||||
fn make_run(run: RunConfig<'_>) {
|
||||
|
|
|
@ -572,10 +572,7 @@ impl Step for Std {
|
|||
|
||||
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
|
||||
let builder = run.builder;
|
||||
run.crate_or_deps("sysroot")
|
||||
.path("library")
|
||||
.alias("core")
|
||||
.default_condition(builder.config.docs)
|
||||
run.crate_or_deps("sysroot").path("library").default_condition(builder.config.docs)
|
||||
}
|
||||
|
||||
fn make_run(run: RunConfig<'_>) {
|
||||
|
|
|
@ -127,10 +127,14 @@ impl RunConfig<'_> {
|
|||
pub fn cargo_crates_in_set(&self) -> Vec<String> {
|
||||
let mut crates = Vec::new();
|
||||
for krate in &self.paths {
|
||||
let path = krate.assert_single_path();
|
||||
let Some(crate_name) = self.builder.crate_paths.get(&path.path) else {
|
||||
panic!("missing crate for path {}", path.path.display())
|
||||
};
|
||||
let path = &krate.assert_single_path().path;
|
||||
|
||||
let crate_name = self
|
||||
.builder
|
||||
.crate_paths
|
||||
.get(path)
|
||||
.unwrap_or_else(|| panic!("missing crate for path {}", path.display()));
|
||||
|
||||
crates.push(crate_name.to_string());
|
||||
}
|
||||
crates
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue