Skip to content

Conversation

@geoffw0
Copy link

@geoffw0 geoffw0 commented Dec 9, 2025

Add test case for rust/access-after-lifetime-ended involving an invalid reference. I wanted to understand a bit better what results we're losing with these changes in github#20941 and I think I've accomplished that here - in this case we have a legitimate sink that is neither in unsafe code nor does the sink dereference a pointer (it dereferences a reference converted from a pointer).

This probably isn't too concerning as (1) the unsafe restriction already existed for this query and (2) I suspect this kind of thing isn't a terribly common case.

@paldepind this is why I've been a while figuring out my review for github#20941

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant