Skip to content

[experiment] Turn off never type fallback #122955

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 11 commits into from
Prev Previous commit
Next Next commit
Hackily disable even more things
  • Loading branch information
WaffleLapkin committed Apr 3, 2024
commit f134381569cc649c39481e0e583e11e5e30aaf13
4 changes: 4 additions & 0 deletions src/bootstrap/src/core/build_steps/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,10 @@ macro_rules! tool_doc {
/// we do not merge it with the other documentation from std, test and
/// proc_macros. This is largely just a wrapper around `cargo doc`.
fn run(self, builder: &Builder<'_>) {
if stringify!($tool).to_lowercase() == "cargo" {
return;
}

let stage = builder.top_stage;
let target = self.target;

Expand Down
24 changes: 14 additions & 10 deletions src/bootstrap/src/core/build_steps/tool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -597,11 +597,11 @@ impl Step for RustAnalyzer {
)
}

fn make_run(run: RunConfig<'_>) {
run.builder.ensure(RustAnalyzer {
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.build),
target: run.target,
});
fn make_run(_run: RunConfig<'_>) {
// run.builder.ensure(RustAnalyzer {
// compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.build),
// target: run.target,
// });
}

fn run(self, builder: &Builder<'_>) -> PathBuf {
Expand Down Expand Up @@ -644,11 +644,11 @@ impl Step for RustAnalyzerProcMacroSrv {
)
}

fn make_run(run: RunConfig<'_>) {
run.builder.ensure(RustAnalyzerProcMacroSrv {
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.build),
target: run.target,
});
fn make_run(_run: RunConfig<'_>) {
// run.builder.ensure(RustAnalyzerProcMacroSrv {
// compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.build),
// target: run.target,
// });
}

fn run(self, builder: &Builder<'_>) -> Option<PathBuf> {
Expand Down Expand Up @@ -784,6 +784,10 @@ macro_rules! tool_extended {
}

fn make_run(run: RunConfig<'_>) {
if stringify!($name).to_lowercase().ends_with("clippy") {
return;
}

run.builder.ensure($name {
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.build),
target: run.target,
Expand Down
4 changes: 2 additions & 2 deletions src/tools/opt-dist/src/training.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use humansize::BINARY;

const LLVM_PGO_CRATES: &[&str] = &[
"syn-1.0.89",
"cargo-0.60.0",
//"cargo-0.60.0",
"serde-1.0.136",
"ripgrep-13.0.0",
"regex-1.5.5",
Expand All @@ -19,7 +19,7 @@ const LLVM_PGO_CRATES: &[&str] = &[
const RUSTC_PGO_CRATES: &[&str] = &[
"externs",
"ctfe-stress-5",
"cargo-0.60.0",
//"cargo-0.60.0",
"token-stream-stress",
"match-stress",
"tuple-stress",
Expand Down