aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/codegen
diff options
context:
space:
mode:
Diffstat (limited to 'xtask/src/codegen')
-rw-r--r--xtask/src/codegen/gen_lint_completions.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/xtask/src/codegen/gen_lint_completions.rs b/xtask/src/codegen/gen_lint_completions.rs
index 3a2937670..24dbc6a39 100644
--- a/xtask/src/codegen/gen_lint_completions.rs
+++ b/xtask/src/codegen/gen_lint_completions.rs
@@ -8,7 +8,7 @@ use xshell::{cmd, read_file};
8use crate::codegen::{ensure_file_contents, project_root, reformat, Result}; 8use crate::codegen::{ensure_file_contents, project_root, reformat, Result};
9 9
10pub(crate) fn generate_lint_completions() -> Result<()> { 10pub(crate) fn generate_lint_completions() -> Result<()> {
11 if !Path::new("./target/rust").exists() { 11 if !project_root().join("./target/rust").exists() {
12 cmd!("git clone --depth=1 https://github.com/rust-lang/rust ./target/rust").run()?; 12 cmd!("git clone --depth=1 https://github.com/rust-lang/rust ./target/rust").run()?;
13 } 13 }
14 14