From 1a4a3eb69bcd48d79da0e227c6e2998d7910e6a7 Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Wed, 25 Dec 2019 18:33:56 +0100 Subject: Check for `todo!` macros in no_todo --- xtask/tests/tidy-tests/cli.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xtask') diff --git a/xtask/tests/tidy-tests/cli.rs b/xtask/tests/tidy-tests/cli.rs index 573ffadbf..f9ca45292 100644 --- a/xtask/tests/tidy-tests/cli.rs +++ b/xtask/tests/tidy-tests/cli.rs @@ -43,7 +43,7 @@ fn no_todo() { return; } let text = std::fs::read_to_string(e.path()).unwrap(); - if text.contains("TODO") || text.contains("TOOD") { + if text.contains("TODO") || text.contains("TOOD") || text.contains("todo!") { panic!( "\nTODO markers should not be committed to the master branch,\n\ use FIXME instead\n\ -- cgit v1.2.3