about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorUrgau <urgau@numericable.fr>2024-12-19 22:07:05 +0100
committerUrgau <urgau@numericable.fr>2025-06-12 07:33:56 +0200
commitfafc0f249f8d6c2eabd2c75dca536f04ddead79f (patch)
tree33e8e9bf7ac6af999aa8d0f71b0c14b586967739 /compiler
parentf77bb1b294a30efb73ff4845946a3aad0950cb83 (diff)
downloadrust-fafc0f249f8d6c2eabd2c75dca536f04ddead79f.tar.gz
rust-fafc0f249f8d6c2eabd2c75dca536f04ddead79f.zip
Report the `unpredictable_function_pointer_comparisons` lint in macro
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_lint/src/types.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/types.rs b/compiler/rustc_lint/src/types.rs
index fec23354c91..aaba0c14b1c 100644
--- a/compiler/rustc_lint/src/types.rs
+++ b/compiler/rustc_lint/src/types.rs
@@ -196,7 +196,8 @@ declare_lint! {
     /// same address after being merged together.
     UNPREDICTABLE_FUNCTION_POINTER_COMPARISONS,
     Warn,
-    "detects unpredictable function pointer comparisons"
+    "detects unpredictable function pointer comparisons",
+    report_in_external_macro
 }
 
 #[derive(Copy, Clone, Default)]