about summary refs log tree commit diff
path: root/clippy_dev/src/update_lints.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-04-20 14:51:33 +0000
committerbors <bors@rust-lang.org>2023-04-20 14:51:33 +0000
commit06dace2920edb99eab8b2e714d4e2ea7d5684005 (patch)
tree03ccdbc63349d0d43b0763693d2783d673175d44 /clippy_dev/src/update_lints.rs
parent523c8fa2ed3845b0be3f5d1f4867ae56bdc97435 (diff)
parentdef1705a271e317da4ae67d3a92e99fc699c9209 (diff)
downloadrust-06dace2920edb99eab8b2e714d4e2ea7d5684005.tar.gz
rust-06dace2920edb99eab8b2e714d4e2ea7d5684005.zip
Auto merge of #10669 - oli-obk:@, r=Alexendoo
Update to a compiletest-rs version that requires `//@` for commands

Requires https://github.com/Manishearth/compiletest-rs/pull/261 to get published

This PR is a smaller step towards https://github.com/rust-lang/rust-clippy/pull/10426

changelog: Move to a version of compiletest-rs that allows us to require `//`@`` for test suite commands.
Diffstat (limited to 'clippy_dev/src/update_lints.rs')
-rw-r--r--clippy_dev/src/update_lints.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_dev/src/update_lints.rs b/clippy_dev/src/update_lints.rs
index 95222a9acdf..dd90a38f757 100644
--- a/clippy_dev/src/update_lints.rs
+++ b/clippy_dev/src/update_lints.rs
@@ -741,7 +741,7 @@ fn gen_deprecated_lints_test(lints: &[DeprecatedLint]) -> String {
 fn gen_renamed_lints_test(lints: &[RenamedLint]) -> String {
     let mut seen_lints = HashSet::new();
     let mut res: String = GENERATED_FILE_COMMENT.into();
-    res.push_str("// run-rustfix\n\n");
+    res.push_str("//@run-rustfix\n\n");
     for lint in lints {
         if seen_lints.insert(&lint.new_name) {
             writeln!(res, "#![allow({})]", lint.new_name).unwrap();