1
Fork 0

Start work on dangling pointers lint

This commit is contained in:
Anthony Eid 2024-11-13 00:38:53 -05:00
parent 0e98766a54
commit de0cb6cb6e
2 changed files with 5 additions and 1 deletions

View file

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