diff options
| author | Joshua Nelson <jnelson@cloudflare.com> | 2022-11-26 15:23:53 -0500 |
|---|---|---|
| committer | Joshua Nelson <jnelson@cloudflare.com> | 2022-11-26 15:24:46 -0500 |
| commit | c80b484eff512f15c5c154ae50060901b856cd0d (patch) | |
| tree | d4372c30e33920b146c88f176abb798467bf895c /src/bootstrap | |
| parent | 8841bee954ecf0e6820c9990feb3a76cb04e7d96 (diff) | |
| download | rust-c80b484eff512f15c5c154ae50060901b856cd0d.tar.gz rust-c80b484eff512f15c5c154ae50060901b856cd0d.zip | |
Revert "Don't set `is_preview` for clippy and rustfmt"
This reverts commit fb3e724d7602675f147a9b80e70fb6bd6512738c, which broke `rustup update` for anyone with clippy or rustfmt installed.
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/dist.rs | 4 | ||||
| -rw-r--r-- | src/bootstrap/download.rs | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs index a274d7b9aa1..2fef7f65827 100644 --- a/src/bootstrap/dist.rs +++ b/src/bootstrap/dist.rs @@ -1191,6 +1191,7 @@ impl Step for Clippy { let mut tarball = Tarball::new(builder, "clippy", &target.triple); tarball.set_overlay(OverlayKind::Clippy); + tarball.is_preview(true); tarball.add_file(clippy, "bin", 0o755); tarball.add_file(cargoclippy, "bin", 0o755); tarball.add_legal_and_readme_to("share/doc/clippy"); @@ -1288,6 +1289,7 @@ impl Step for Rustfmt { .expect("cargo fmt expected to build - essential tool"); let mut tarball = Tarball::new(builder, "rustfmt", &target.triple); tarball.set_overlay(OverlayKind::Rustfmt); + tarball.is_preview(true); tarball.add_file(rustfmt, "bin", 0o755); tarball.add_file(cargofmt, "bin", 0o755); tarball.add_legal_and_readme_to("share/doc/rustfmt"); @@ -1548,6 +1550,8 @@ impl Step for Extended { format!("{}-{}", name, target.triple) } else if name == "rust-analyzer" { "rust-analyzer-preview".to_string() + } else if name == "clippy" { + "clippy-preview".to_string() } else if name == "rust-demangler" { "rust-demangler-preview".to_string() } else if name == "miri" { diff --git a/src/bootstrap/download.rs b/src/bootstrap/download.rs index 430b3496d00..d0f389df973 100644 --- a/src/bootstrap/download.rs +++ b/src/bootstrap/download.rs @@ -326,8 +326,6 @@ impl Config { } let filename = format!("rustfmt-{version}-{build}.tar.xz", build = host.triple); - // cfg(bootstrap): will need to be changed from `rustfmt-preview` to `rustfmt` the next time you run `bump-stage0`. - // See <https://github.com/rust-lang/rust/pull/103648> self.download_component(DownloadSource::Dist, filename, "rustfmt-preview", &date, "stage0"); self.fix_bin_or_dylib(&bin_root.join("bin").join("rustfmt")); |
