Skip to content

Commit 1154358

Browse files
Delete unused fields on Crate struct
1 parent 7234d8c commit 1154358

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

src/bootstrap/lib.rs

-5
Original file line numberDiff line numberDiff line change
@@ -270,14 +270,9 @@ pub struct Build {
270270
#[derive(Debug)]
271271
struct Crate {
272272
name: Interned<String>,
273-
version: String,
274273
deps: HashSet<Interned<String>>,
275274
id: String,
276275
path: PathBuf,
277-
doc_step: String,
278-
build_step: String,
279-
test_step: String,
280-
bench_step: String,
281276
}
282277

283278
impl Crate {

src/bootstrap/metadata.rs

-6
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ struct Output {
2020
struct Package {
2121
id: String,
2222
name: String,
23-
version: String,
2423
source: Option<String>,
2524
manifest_path: String,
2625
}
@@ -84,12 +83,7 @@ fn build_krate(features: &str, build: &mut Build, resolves: &mut Vec<ResolveNode
8483
let mut path = PathBuf::from(package.manifest_path);
8584
path.pop();
8685
build.crates.insert(name, Crate {
87-
build_step: format!("build-crate-{}", name),
88-
doc_step: format!("doc-crate-{}", name),
89-
test_step: format!("test-crate-{}", name),
90-
bench_step: format!("bench-crate-{}", name),
9186
name,
92-
version: package.version,
9387
id: package.id,
9488
deps: HashSet::new(),
9589
path,

0 commit comments

Comments
 (0)