From ebf4448f78abaff3c666b61c3bb8a849db5c9b7f Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Fri, 12 Mar 2021 15:10:33 +0100 Subject: Fix remaining references to `cargo xtask codegen` --- xtask/src/codegen.rs | 2 +- xtask/src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'xtask') 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<()> { let _ = std::fs::create_dir_all(parent); } std::fs::write(file, contents).unwrap(); - anyhow::bail!("some file were not up to date") + anyhow::bail!("some file was not up to date and has been updated, simply re-run the tests") } fn 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 @@ //! See https://github.com/matklad/cargo-xtask/. //! //! This binary defines various auxiliary build commands, which are not -//! expressible with just `cargo`. Notably, it provides `cargo xtask codegen` +//! expressible with just `cargo`. Notably, it provides tests via `cargo test -p xtask` //! for code generation and `cargo xtask install` for installation of //! rust-analyzer server and client. //! -- cgit v1.2.3