Skip to content

Commit 72e6d40

Browse files
committed
Auto merge of #40111 - alexcrichton:fix-manifests, r=brson
Attempt to fix nightly manifests Found a few bugs and mistakes with the manifests. Closes #40106
2 parents 808dbcc + 5ed6765 commit 72e6d40

File tree

1 file changed

+3
-19
lines changed
  • src/tools/build-manifest/src

1 file changed

+3
-19
lines changed

src/tools/build-manifest/src/main.rs

+3-19
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ impl Builder {
215215
self.package("rust-docs", &mut manifest.pkg, TARGETS);
216216
self.package("rust-src", &mut manifest.pkg, &["*"]);
217217

218-
if self.channel == "rust-nightly" {
219-
self.package("analysis", &mut manifest.pkg, TARGETS);
218+
if self.channel == "nightly" {
219+
self.package("rust-analysis", &mut manifest.pkg, TARGETS);
220220
}
221221

222222
let mut pkg = Package {
@@ -283,7 +283,7 @@ impl Builder {
283283
pkg.target.insert(host.to_string(), Target {
284284
available: true,
285285
url: Some(self.url("rust", host)),
286-
hash: Some(to_hex(digest.as_ref())),
286+
hash: Some(digest),
287287
components: Some(components),
288288
extensions: Some(extensions),
289289
});
@@ -409,19 +409,3 @@ impl Builder {
409409
self.sign(&dst);
410410
}
411411
}
412-
413-
fn to_hex(digest: &[u8]) -> String {
414-
let mut ret = String::new();
415-
for byte in digest {
416-
ret.push(hex((byte & 0xf0) >> 4));
417-
ret.push(hex(byte & 0xf));
418-
}
419-
return ret;
420-
421-
fn hex(b: u8) -> char {
422-
match b {
423-
0...9 => (b'0' + b) as char,
424-
_ => (b'a' + b - 10) as char,
425-
}
426-
}
427-
}

0 commit comments

Comments
 (0)