diff options
| author | Lukas Wirth <lukas.wirth@ferrous-systems.com> | 2024-02-23 17:24:29 +0100 |
|---|---|---|
| committer | Lukas Wirth <lukas.wirth@ferrous-systems.com> | 2024-02-23 17:24:29 +0100 |
| commit | c6a6e63a458064e8f7cdbe6f5992a195274eab0a (patch) | |
| tree | bff06c2b1415aee5f13c5593cb798d454e5818af | |
| parent | cbc579e51f7ee2505d8e04c52b116453f934f48b (diff) | |
| download | rust-c6a6e63a458064e8f7cdbe6f5992a195274eab0a.tar.gz rust-c6a6e63a458064e8f7cdbe6f5992a195274eab0a.zip | |
internal: Pin commit of rust-lang/rust for rustc-test metrics
| -rw-r--r-- | crates/rust-analyzer/src/cli/rustc_tests.rs | 1 | ||||
| -rw-r--r-- | xtask/src/metrics.rs | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/cli/rustc_tests.rs b/crates/rust-analyzer/src/cli/rustc_tests.rs index b3b6da1f698..7062b60cbfc 100644 --- a/crates/rust-analyzer/src/cli/rustc_tests.rs +++ b/crates/rust-analyzer/src/cli/rustc_tests.rs @@ -276,6 +276,7 @@ impl flags::RustcTests { pub fn run(self) -> Result<()> { let mut tester = Tester::new()?; let walk_dir = WalkDir::new(self.rustc_repo.join("tests/ui")); + eprintln!("Running tests for tests/ui"); for i in walk_dir { let i = i?; let p = i.into_path(); diff --git a/xtask/src/metrics.rs b/xtask/src/metrics.rs index 2efafa10a82..285abb9efcb 100644 --- a/xtask/src/metrics.rs +++ b/xtask/src/metrics.rs @@ -86,7 +86,11 @@ impl Metrics { fn measure_rustc_tests(&mut self, sh: &Shell) -> anyhow::Result<()> { eprintln!("\nMeasuring rustc tests"); - cmd!(sh, "git clone --depth=1 https://github.com/rust-lang/rust").run()?; + cmd!( + sh, + "git clone --depth=1 --branch 1.76.0 https://github.com/rust-lang/rust.git --single-branch" + ) + .run()?; let output = cmd!(sh, "./target/release/rust-analyzer rustc-tests ./rust").read()?; for (metric, value, unit) in parse_metrics(&output) { |
