Skip to content

Conversation

@davidhewitt
Copy link
Member

In progress work to close #5392

I realised that using Borrowed allows 'a to outlive 'py in argument extraction. This is not always strictly necessary, but in the case of the async code I'm looking into in #5681 it turns out that it's valid for function arguments to have the 'a lifetime but not the 'py lifetime.

This might also be a performance help by removing the need to have references to pointers on stack frames for the BoundRef stuff.

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.

Use Borrowed inside of extract_argument.rs

1 participant