From c5fee7d595b7e38daa5bd7356ef5580f4f6c97a6 Mon Sep 17 00:00:00 2001 From: Urgau Date: Sat, 28 Jun 2025 14:29:29 +0200 Subject: [PATCH] Use a different lint for the `ffix_only_once_for_duplicates` test --- tests/testsuite/fix.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/testsuite/fix.rs b/tests/testsuite/fix.rs index 50ec09dece3..dd8369d02fa 100644 --- a/tests/testsuite/fix.rs +++ b/tests/testsuite/fix.rs @@ -2410,7 +2410,8 @@ fn fix_only_once_for_duplicates() { r#" macro_rules! foo { () => { - &1; + let x = Box::new(1); + std::mem::forget(&x); }; } @@ -2438,7 +2439,8 @@ fn main() { macro_rules! foo { () => { - let _ = &1; + let x = Box::new(1); + let _ = &x; }; }