about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/lints.rs
diff options
context:
space:
mode:
authorUrgau <urgau@numericable.fr>2025-08-27 19:27:51 +0200
committerUrgau <urgau@numericable.fr>2025-08-27 20:36:30 +0200
commita8c837e7ffc6b559987c8fc71581ded676cf29f3 (patch)
treee04588b23d92f8853417e8999517965c07b5dfc8 /compiler/rustc_lint/src/lints.rs
parent41a79f1862aa6b81bac674598e275e80e9f09eb9 (diff)
downloadrust-a8c837e7ffc6b559987c8fc71581ded676cf29f3.tar.gz
rust-a8c837e7ffc6b559987c8fc71581ded676cf29f3.zip
Disable `int_to_ptr_transmutes` suggestion for unsized types
Diffstat (limited to 'compiler/rustc_lint/src/lints.rs')
-rw-r--r--compiler/rustc_lint/src/lints.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/lints.rs b/compiler/rustc_lint/src/lints.rs
index 426500dda4a..56d65ed08f9 100644
--- a/compiler/rustc_lint/src/lints.rs
+++ b/compiler/rustc_lint/src/lints.rs
@@ -1554,7 +1554,7 @@ impl<'a> LintDiagnostic<'a, ()> for DropGlue<'_> {
 #[help(lint_help_exposed_provenance)]
 pub(crate) struct IntegerToPtrTransmutes<'tcx> {
     #[subdiagnostic]
-    pub suggestion: IntegerToPtrTransmutesSuggestion<'tcx>,
+    pub suggestion: Option<IntegerToPtrTransmutesSuggestion<'tcx>>,
 }
 
 #[derive(Subdiagnostic)]