Disable int_to_ptr_transmutes suggestion for unsized types

This commit is contained in:
Urgau
2025-08-27 19:27:51 +02:00
parent 41a79f1862
commit a8c837e7ff
4 changed files with 69 additions and 13 deletions

View File

@@ -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)]