Skip to content

Commit

Permalink
Comment and include rust-analyzer.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Jun 23, 2021
1 parent 601d248 commit 6aa79a3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/bootstrap/dist.rs
Expand Up @@ -1072,6 +1072,12 @@ 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;
assert!(builder.config.extended);
Expand Down Expand Up @@ -1171,6 +1177,9 @@ impl Step for Miri {
}

fn run(self, builder: &Builder<'_>) -> Option<GeneratedTarball> {
// This prevents miri 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;
}
Expand Down

0 comments on commit 6aa79a3

Please sign in to comment.