aboutsummaryrefslogtreecommitdiff
path: root/xtask/src
diff options
context:
space:
mode:
authorLukas Wirth <[email protected]>2021-03-12 14:10:33 +0000
committerLukas Wirth <[email protected]>2021-03-12 14:10:33 +0000
commitebf4448f78abaff3c666b61c3bb8a849db5c9b7f (patch)
treefc22518e7df4fdb1d8c17a391932de3fa3eebc41 /xtask/src
parentc0e9530fd095317563532c20f13959619515c9b2 (diff)
Fix remaining references to `cargo xtask codegen`
Diffstat (limited to 'xtask/src')
-rw-r--r--xtask/src/codegen.rs2
-rw-r--r--xtask/src/main.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/xtask/src/codegen.rs b/xtask/src/codegen.rs
index 2cf3c6fdc..518e17e38 100644
--- a/xtask/src/codegen.rs
+++ b/xtask/src/codegen.rs
@@ -62,7 +62,7 @@ pub(crate) fn ensure_file_contents(file: &Path, contents: &str) -> Result<()> {
62 let _ = std::fs::create_dir_all(parent); 62 let _ = std::fs::create_dir_all(parent);
63 } 63 }
64 std::fs::write(file, contents).unwrap(); 64 std::fs::write(file, contents).unwrap();
65 anyhow::bail!("some file were not up to date") 65 anyhow::bail!("some file was not up to date and has been updated, simply re-run the tests")
66} 66}
67 67
68fn normalize_newlines(s: &str) -> String { 68fn normalize_newlines(s: &str) -> String {
diff --git a/xtask/src/main.rs b/xtask/src/main.rs
index 35cc7c108..057cd57ae 100644
--- a/xtask/src/main.rs
+++ b/xtask/src/main.rs
@@ -1,7 +1,7 @@
1//! See https://github.com/matklad/cargo-xtask/. 1//! See https://github.com/matklad/cargo-xtask/.
2//! 2//!
3//! This binary defines various auxiliary build commands, which are not 3//! This binary defines various auxiliary build commands, which are not
4//! expressible with just `cargo`. Notably, it provides `cargo xtask codegen` 4//! expressible with just `cargo`. Notably, it provides tests via `cargo test -p xtask`
5//! for code generation and `cargo xtask install` for installation of 5//! for code generation and `cargo xtask install` for installation of
6//! rust-analyzer server and client. 6//! rust-analyzer server and client.
7//! 7//!