summary refs log tree commit diff
path: root/tests/ui/lint/wide_pointer_comparisons.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-07-31 02:12:32 +0000
committerMichael Goulet <michael@errs.io>2025-07-31 02:28:11 +0000
commit51cd9b564f75b8330893b919b90e293530d1c395 (patch)
treeb039f6db349597df2c8fc8076cb092443d06b93f /tests/ui/lint/wide_pointer_comparisons.rs
parente5e79f8bd428d0b8d26e8240d718b134ef297459 (diff)
downloadrust-51cd9b564f75b8330893b919b90e293530d1c395.tar.gz
rust-51cd9b564f75b8330893b919b90e293530d1c395.zip
Consider operator's span when computing binop expr span
Diffstat (limited to 'tests/ui/lint/wide_pointer_comparisons.rs')
-rw-r--r--tests/ui/lint/wide_pointer_comparisons.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/ui/lint/wide_pointer_comparisons.rs b/tests/ui/lint/wide_pointer_comparisons.rs
index 05097cbf1e3..a5e3f4754b8 100644
--- a/tests/ui/lint/wide_pointer_comparisons.rs
+++ b/tests/ui/lint/wide_pointer_comparisons.rs
@@ -146,12 +146,10 @@ fn main() {
     {
         macro_rules! cmp {
             ($a:tt, $b:tt) => { $a == $b }
+            //~^ WARN ambiguous wide pointer comparison
         }
 
-        // FIXME: This lint uses some custom span combination logic.
-        // Rewrite it to adapt to the new metavariable span rules.
         cmp!(a, b);
-        //~^ WARN ambiguous wide pointer comparison
     }
 
     {