diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-03-01 17:51:35 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-03-01 17:51:35 +0000 |
commit | 5efb7f85eb24c7ad76136a7d81e8f8cffe213aa8 (patch) | |
tree | 0795d7277733920361a260db1a65306f1a47e1ac /xtask/src/codegen/gen_lint_completions.rs | |
parent | c17f2bf2a27798858ef2e3012ca28295aed46efa (diff) | |
parent | d9dcfd81c5d4325379ac88c4250b9c77ecbd75e8 (diff) |
Merge #7830
7830: Simplify xtask r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'xtask/src/codegen/gen_lint_completions.rs')
-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 8c51d35c7..b1c057037 100644 --- a/xtask/src/codegen/gen_lint_completions.rs +++ b/xtask/src/codegen/gen_lint_completions.rs | |||
@@ -10,7 +10,7 @@ use crate::{ | |||
10 | run_rustfmt, | 10 | run_rustfmt, |
11 | }; | 11 | }; |
12 | 12 | ||
13 | pub fn generate_lint_completions(mode: Mode) -> Result<()> { | 13 | pub(crate) fn generate_lint_completions(mode: Mode) -> Result<()> { |
14 | if !Path::new("./target/rust").exists() { | 14 | if !Path::new("./target/rust").exists() { |
15 | cmd!("git clone --depth=1 https://github.com/rust-lang/rust ./target/rust").run()?; | 15 | cmd!("git clone --depth=1 https://github.com/rust-lang/rust ./target/rust").run()?; |
16 | } | 16 | } |