From c8f27a4a886413a15a2a6af4a87b39b901c873a8 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 31 May 2020 01:54:54 +0200 Subject: Generate features docs from source --- xtask/tests/tidy.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xtask/tests/tidy.rs') diff --git a/xtask/tests/tidy.rs b/xtask/tests/tidy.rs index 2e9fcf07c..06ff45d99 100644 --- a/xtask/tests/tidy.rs +++ b/xtask/tests/tidy.rs @@ -30,6 +30,13 @@ fn generated_assists_are_fresh() { } } +#[test] +fn generated_features_are_fresh() { + if let Err(error) = codegen::generate_feature_docs(Mode::Verify) { + panic!("{}. Please update features by running `cargo xtask codegen`", error); + } +} + #[test] fn check_code_formatting() { if let Err(error) = run_rustfmt(Mode::Verify) { -- cgit v1.2.3