diff --git a/test/lint/test_runner/src/main.rs b/test/lint/test_runner/src/main.rs index 77388b78ff..c6338f0ecd 100644 --- a/test/lint/test_runner/src/main.rs +++ b/test/lint/test_runner/src/main.rs @@ -376,7 +376,7 @@ fn lint_includes_build_config() -> LintResult { "--files-with-matches" }, if mode { - "^#include // IWYU pragma: keep$" + "#include " } else { "#include " // Catch redundant includes with and without the IWYU pragma },