1
Fork 0

Rollup merge of #132983 - Anthony-Eid:dangling-pointers-lint, r=Urgau

Edit dangling pointers

Closes: #132283
This commit is contained in:
Matthias Krüger 2025-01-22 20:37:23 +01:00 committed by GitHub
commit 9206ba535c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 86 additions and 2 deletions

View file

@ -1139,7 +1139,9 @@ pub(crate) struct IgnoredUnlessCrateSpecified<'a> {
#[derive(LintDiagnostic)]
#[diag(lint_dangling_pointers_from_temporaries)]
#[note]
#[help]
#[help(lint_help_bind)]
#[help(lint_help_returned)]
#[help(lint_help_visit)]
// FIXME: put #[primary_span] on `ptr_span` once it does not cause conflicts
pub(crate) struct DanglingPointersFromTemporaries<'tcx> {
pub callee: Symbol,