Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'xtask/src/codegen/lints.rs')
-rw-r--r--xtask/src/codegen/lints.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/xtask/src/codegen/lints.rs b/xtask/src/codegen/lints.rs
index 5b933933c3..fafc87a0e2 100644
--- a/xtask/src/codegen/lints.rs
+++ b/xtask/src/codegen/lints.rs
@@ -76,7 +76,12 @@ pub struct LintGroup {
let contents = add_preamble(crate::flags::CodegenType::LintDefinitions, reformat(contents));
let destination = project_root().join(DESTINATION);
- ensure_file_contents(destination.as_path(), &contents, check);
+ ensure_file_contents(
+ crate::flags::CodegenType::LintDefinitions,
+ destination.as_path(),
+ &contents,
+ check,
+ );
}
/// Parses the output of `rustdoc -Whelp` and prints `Lint` and `LintGroup` constants into `buf`.