X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fbootstrap%2Ftest.rs;h=8a0c532cfb02fe5c29132adb7cb6a2757728696a;hb=8709e9be5adfe50fa765f73aec8fb5725ec20862;hp=159f2fba671c99c6f1e46bbe1ca43ea604a0b906;hpb=40ba0e84d53f605ccf01836e9c2d27892728ae81;p=rust.git diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index 159f2fba671..8a0c532cfb0 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -378,6 +378,7 @@ fn run(self, builder: &Builder<'_>) { SourceType::InTree, &["sysroot-abi".to_owned()], ); + cargo.allow_features(tool::RustAnalyzer::ALLOW_FEATURES); let dir = builder.src.join(workspace_path); // needed by rust-analyzer to find its own text fixtures, cf. @@ -690,7 +691,7 @@ fn run(self, builder: &Builder<'_>) { // We need `ToolStd` for the locally-built sysroot because // compiletest uses unstable features of the `test` crate. builder.ensure(compile::Std::new(compiler, host)); - let cargo = tool::prepare_tool_cargo( + let mut cargo = tool::prepare_tool_cargo( builder, compiler, Mode::ToolStd, @@ -700,6 +701,7 @@ fn run(self, builder: &Builder<'_>) { SourceType::InTree, &[], ); + cargo.allow_features("test"); try_run(builder, &mut cargo.into()); } @@ -1112,9 +1114,6 @@ fn run(self, builder: &Builder<'_>) { cmd.arg("--bless"); } - builder.info("tidy check"); - try_run(builder, &mut cmd); - if builder.config.channel == "dev" || builder.config.channel == "nightly" { builder.info("fmt check"); if builder.initial_rustfmt().is_none() { @@ -1132,6 +1131,11 @@ fn run(self, builder: &Builder<'_>) { } crate::format::format(&builder, !builder.config.cmd.bless(), &[]); } + + builder.info("tidy check"); + try_run(builder, &mut cmd); + + builder.ensure(ExpandYamlAnchors {}); } fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {