1
Fork 0

Update compiler/rustc_lint/src/lints.rs

Co-authored-by: Urgau <3616612+Urgau@users.noreply.github.com>
This commit is contained in:
Anthony Eid 2024-12-05 06:06:38 -05:00 committed by Anthony Eid
parent de0cb6cb6e
commit 6d95b5baef

View file

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