diff options
Diffstat (limited to 'xtask/src/codegen')
-rw-r--r-- | xtask/src/codegen/gen_lint_completions.rs | 2 |
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}; | |||
8 | use crate::codegen::{ensure_file_contents, project_root, reformat, Result}; | 8 | use crate::codegen::{ensure_file_contents, project_root, reformat, Result}; |
9 | 9 | ||
10 | pub(crate) fn generate_lint_completions() -> Result<()> { | 10 | pub(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 | ||