Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'xtask/src/codegen/assists_doc_tests.rs')
| -rw-r--r-- | xtask/src/codegen/assists_doc_tests.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xtask/src/codegen/assists_doc_tests.rs b/xtask/src/codegen/assists_doc_tests.rs index 0bb18c73cf..dd55d06bd3 100644 --- a/xtask/src/codegen/assists_doc_tests.rs +++ b/xtask/src/codegen/assists_doc_tests.rs @@ -5,7 +5,7 @@ use std::{fmt, fs, path::Path}; use stdx::format_to_acc; use crate::{ - codegen::{add_preamble, ensure_file_contents, reformat, CommentBlock, Location}, + codegen::{CommentBlock, Location, add_preamble, ensure_file_contents, reformat}, project_root, util::list_rust_files, }; @@ -53,6 +53,11 @@ r#####" ); } + // Do not generate assists manual when run with `--check` + if check { + return; + } + { // Generate assists manual. Note that we do _not_ commit manual to the // git repo. Instead, `cargo xtask release` runs this test before making |