Skip to content

Commit c0e9c86

Browse files
committed
Auto merge of #104950 - jyn514:revert-preview, r=Mark-Simulacrum
Revert "Don't set `is_preview` for clippy and rustfmt" This reverts commit fb3e724, which broke `rustup update` for anyone with clippy or rustfmt installed. Fixes #104930. r? `@Mark-Simulacrum` `@bors` p=50 fixes nightly
2 parents 80a9646 + c80b484 commit c0e9c86

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

src/bootstrap/dist.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1191,6 +1191,7 @@ impl Step for Clippy {
11911191

11921192
let mut tarball = Tarball::new(builder, "clippy", &target.triple);
11931193
tarball.set_overlay(OverlayKind::Clippy);
1194+
tarball.is_preview(true);
11941195
tarball.add_file(clippy, "bin", 0o755);
11951196
tarball.add_file(cargoclippy, "bin", 0o755);
11961197
tarball.add_legal_and_readme_to("share/doc/clippy");
@@ -1288,6 +1289,7 @@ impl Step for Rustfmt {
12881289
.expect("cargo fmt expected to build - essential tool");
12891290
let mut tarball = Tarball::new(builder, "rustfmt", &target.triple);
12901291
tarball.set_overlay(OverlayKind::Rustfmt);
1292+
tarball.is_preview(true);
12911293
tarball.add_file(rustfmt, "bin", 0o755);
12921294
tarball.add_file(cargofmt, "bin", 0o755);
12931295
tarball.add_legal_and_readme_to("share/doc/rustfmt");
@@ -1548,6 +1550,8 @@ impl Step for Extended {
15481550
format!("{}-{}", name, target.triple)
15491551
} else if name == "rust-analyzer" {
15501552
"rust-analyzer-preview".to_string()
1553+
} else if name == "clippy" {
1554+
"clippy-preview".to_string()
15511555
} else if name == "rust-demangler" {
15521556
"rust-demangler-preview".to_string()
15531557
} else if name == "miri" {

src/bootstrap/download.rs

-2
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,6 @@ impl Config {
326326
}
327327

328328
let filename = format!("rustfmt-{version}-{build}.tar.xz", build = host.triple);
329-
// cfg(bootstrap): will need to be changed from `rustfmt-preview` to `rustfmt` the next time you run `bump-stage0`.
330-
// See <https://github.com/rust-lang/rust/pull/103648>
331329
self.download_component(DownloadSource::Dist, filename, "rustfmt-preview", &date, "stage0");
332330

333331
self.fix_bin_or_dylib(&bin_root.join("bin").join("rustfmt"));

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ pkg_type! {
4949
Cargo = "cargo",
5050
HtmlDocs = "rust-docs",
5151
RustAnalysis = "rust-analysis",
52-
Clippy = "clippy",
53-
Rustfmt = "rustfmt",
5452
Rls = "rls"; preview = true,
5553
RustAnalyzer = "rust-analyzer"; preview = true,
54+
Clippy = "clippy"; preview = true,
55+
Rustfmt = "rustfmt"; preview = true,
5656
LlvmTools = "llvm-tools"; preview = true,
5757
Miri = "miri"; preview = true,
5858
JsonDocs = "rust-docs-json"; preview = true,

src/tools/bump-stage0/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::convert::TryInto;
66

77
const PATH: &str = "src/stage0.json";
88
const COMPILER_COMPONENTS: &[&str] = &["rustc", "rust-std", "cargo"];
9-
const RUSTFMT_COMPONENTS: &[&str] = &["rustfmt"];
9+
const RUSTFMT_COMPONENTS: &[&str] = &["rustfmt-preview"];
1010

1111
struct Tool {
1212
config: Config,

0 commit comments

Comments
 (0)