Rollup merge of #98640 - cuviper:stable-rust-analyzer, r=Mark-Simulacrum
Let rust-analyzer ship on stable, non-preview The consensus on rust-lang/rust-analyzer#12432 seems to be that we are ready for `rust-analyzer` to ship as a rustup component on the beta and stable channels. This won't always be the preferred distribution method, e.g. the VS Code extension will probably still independently update to its weekly releases, but it's still useful to have a component that follows the release train with the rest of the Rust toolchain. So this removes the nightly-only gating on the bundled component, and removes the "-preview" suffix as well by the usual renaming mechanism. cc ``@rust-lang/wg-rls-2`` ``@rust-lang/release``
This commit is contained in:
commit
41e79910aa
@ -1044,12 +1044,6 @@ impl Step for RustAnalyzer {
|
||||
}
|
||||
|
||||
fn run(self, builder: &Builder<'_>) -> Option<GeneratedTarball> {
|
||||
// This prevents rust-analyzer from being built for "dist" or "install"
|
||||
// on the stable/beta channels. It is a nightly-only tool and should
|
||||
// not be included.
|
||||
if !builder.build.unstable_features() {
|
||||
return None;
|
||||
}
|
||||
let compiler = self.compiler;
|
||||
let target = self.target;
|
||||
|
||||
|
@ -780,7 +780,7 @@ tool_extended!((self, builder),
|
||||
// and this is close enough for now.
|
||||
RustDemangler, rust_demangler, "src/tools/rust-demangler", "rust-demangler", stable=false, in_tree=true, tool_std=true, {};
|
||||
Rustfmt, rustfmt, "src/tools/rustfmt", "rustfmt", stable=true, in_tree=true, {};
|
||||
RustAnalyzer, rust_analyzer, "src/tools/rust-analyzer/crates/rust-analyzer", "rust-analyzer", stable=false, submodule="rust-analyzer", {};
|
||||
RustAnalyzer, rust_analyzer, "src/tools/rust-analyzer/crates/rust-analyzer", "rust-analyzer", stable=true, submodule="rust-analyzer", {};
|
||||
);
|
||||
|
||||
impl<'a> Builder<'a> {
|
||||
|
@ -184,7 +184,7 @@ static PKG_INSTALLERS: &[&str] = &["x86_64-apple-darwin", "aarch64-apple-darwin"
|
||||
|
||||
static MINGW: &[&str] = &["i686-pc-windows-gnu", "x86_64-pc-windows-gnu"];
|
||||
|
||||
static NIGHTLY_ONLY_COMPONENTS: &[&str] = &["miri-preview", "rust-analyzer-preview"];
|
||||
static NIGHTLY_ONLY_COMPONENTS: &[&str] = &["miri-preview"];
|
||||
|
||||
macro_rules! t {
|
||||
($e:expr) => {
|
||||
@ -403,6 +403,7 @@ impl Builder {
|
||||
rename("rustfmt", "rustfmt-preview");
|
||||
rename("clippy", "clippy-preview");
|
||||
rename("miri", "miri-preview");
|
||||
rename("rust-analyzer", "rust-analyzer-preview");
|
||||
}
|
||||
|
||||
fn rust_package(&mut self, manifest: &Manifest) -> Package {
|
||||
|
Loading…
x
Reference in New Issue
Block a user